Re: Session timeout

From: Date: Thu, 13 Dec 2007 13:30:13 +0000
Subject: Re: Session timeout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-265832@lists.php.net to get a copy of this message
I've read a bit about PHP session timeout. Is it configurable?? I mean, If i want user logged out after 10 minutes of innactivity... where i can to set it up?? Is it possible to expire session configuring php.ini. I know i will have to write code to do whatever when the session expires...
There are various configuration options for this (which you change in the php.ini or by using the ini_set() function): session.gc_maxlifetime session.cookie_lifetime Read all about sessions here: http://uk.php.net/manual/en/ref.session.php -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

« previous php.general (#265832) next »