Re: Auto session timeout

From: Date: Sun, 20 Jul 2003 13:30:38 +0000
Subject: Re: Auto session timeout
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155965@lists.php.net to get a copy of this message
Tan Ai Leen wrote:
Hi, Can someone confirm that php does not have a auto timeout feature? Meaning something like session will auto expire irregardless of whether the browser is close or not?
If you're using the default session handler and storing the session files in the location specified in php.ini, then the files will be deleted by the garbage collection process after so many minutes of not being accessed. So, whether the browser window is open or not, the file will be deleted if it hasn't been accessed, thus ending the session. The time that this happens isn't exact, though, since garbage collection is triggered based upon traffic to your site and a probability you set in php.ini. It's close enough for government work, though. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

« previous php.general (#155965) next »