Re: Destroying session if not being used from past 10 mins.
| From: | Jason Wong | Date: | Tue, 21 Oct 2003 07:47:48 +0000 |
| Subject: | Re: Destroying session if not being used from past 10 mins. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166916@lists.php.net to get a copy of this message | ||
On Tuesday 21 October 2003 13:55, Binay wrote:
> How can I configure the session to get destroyed, if not being used from
> past 10 mins.
Sessions are destroyed automatically. You set the session life-time in php.ini
with "session.gc_maxlifetime".
If you want to force the issue, then you'll probably have to check the session
files yourself (assuming you're using the default session handler), which
means you'll have to check the filemtime() of each of the session files and
delete those older than 10 minutes.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Vote anarchist.
*/