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
How to increase or decrease the lifetime of a session?
Moderator: General Moderators
Re: How to increase or decrease the lifetime of a session?
Oops ! Sorry its like this
ini_set("session.gc_maxlifetime", 60);
ini_set("session.gc_maxlifetime", 60);