PHP Developers Network
http://forums.devnetwork.net/

How to increase or decrease the lifetime of a session?
http://forums.devnetwork.net/viewtopic.php?f=8&t=89411
Page 1 of 1

Author:  mukunthan [ Mon Oct 13, 2008 9:12 pm ]
Post subject:  How to increase or decrease the lifetime of a session?

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

Author:  mukunthan [ Mon Oct 13, 2008 9:14 pm ]
Post subject:  Re: How to increase or decrease the lifetime of a session?

Oops ! Sorry its like this
ini_set("session.gc_maxlifetime", 60);

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/