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





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



Reply via email to