Re: session timeouts
| From: | speedboy | Date: | Tue, 21 Aug 2001 01:33:16 +0000 |
| Subject: | Re: session timeouts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63596@lists.php.net to get a copy of this message | ||
> I'm writing a web survey in php and trying to set session timeouts. I have
> a main script that starts the session and displays the pages. Is there a
> way I can make the session timeout if they idle for too long?
Check the php.ini file, it has some settings to set the session timeout.
Other than that, on each page view I write a variable to a session file so
that I know which sessions truely are active. I use the session deletion
script from http://database.sf.net to make sure any sessions
older than X
seconds are removed by the script run through crontab.