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.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to