Page 1 of 1

How to increase or decrease the lifetime of a session?

Posted: Mon Oct 13, 2008 9:12 pm
by mukunthan
Hi ,
How to increase or decrease the lifetime of a session?
My requirement is session should timeout and all the session variables should be unset automatically after the prescribed time limit.
I used this code but the session did not timeout.Why?
ini_set("session.gc_maxlifetime", "60"); // should timeout after 1minute

Re: How to increase or decrease the lifetime of a session?

Posted: Mon Oct 13, 2008 9:14 pm
by mukunthan
Oops ! Sorry its like this
ini_set("session.gc_maxlifetime", 60);