Re: Re: PHP SESSION timeouts
| From: | Marek Kilimajer | Date: | Wed, 03 Sep 2003 12:41:46 +0000 |
| Subject: | Re: Re: PHP SESSION timeouts | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161544@lists.php.net to get a copy of this message | ||
Let me corect you.
Catalin Trifu wrote:
Hi,No, there is not! You have to manage yourselfthe timeout, for instance through a timestamp, which you verify on each request. PHP does not destry sessions by itself. Yes, it does, check your session.gc_maxlifetime setting (gc stands for garbage colector). You cannot change or set this setting per vhost or directory. If you want, you can manage the session yourself (see session_set_save_handler()) and implement your own expiration routines. Anothor thing that can affect session lifetime is the lifetime of session cookie, default is set by session.cookie_lifetime.