RE: [PHP] How to set the time for session??

2001-09-19 Thread Johnson, Kirk

 Then how can i set the time for session??

See the php.ini file, for session.gc_maxlifetime setting:

session.gc_maxlifetime= 1440; after this number of seconds, stored
; data will be seen as 'garbage' and
; cleaned up by the gc process

Kirk

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




Re: [PHP] How to set the time for session??

2001-09-19 Thread speedboy

   i want to expire the session if user sits 15 minutes idle without doing
 anything.

On each page view, you could write a variable to the session file, so the
last modified time is updated. Then run the session deletion script from:

http://database.sourceforge.net/scripts/session.sh

every minute. This is very reliable.


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