Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

timeouts

Status
Not open for further replies.

manicleek

Technical User
Jun 16, 2004
143
GB
Is there an equivalent for the asp code

Code:
Server.ScriptTimeout = 1000

in php?
 
I have tried this but it doesn't seem to work, basically I want something that if theres no activity for 5 minutes the session will be destroyed
 
That is a completely different topic.
Session inactivity has nothing to do with script timeouts.
To set a lifetime on the session cookie:
session.cookie_lifetime integer

session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed." Defaults to 0. See also session_get_cookie_params() and session_set_cookie_params().

Also have a look at the garbage collection settings:
session.gc_maxlifetime integer

session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top