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

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to