RE: [PHP] Session not timing outafter 180 minutes
| From: | Johnson, Kirk | Date: | Mon, 27 Aug 2001 14:53:38 +0000 |
| Subject: | RE: [PHP] Session not timing outafter 180 minutes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64641@lists.php.net to get a copy of this message | ||
> Everything is pretty much set to default vaules. I can
> leave the browser open and come back 12+ hours later
> and the session is still active. Why??
There is another setting which affects this, gc_probability. This setting
determines how often the garbage collection routine runs (that kills off old
sessions). The default is 1, which means the gc runs on one out of every 100
hundred requests. So, if the server is not getting alot of requests, the gc
routine doesn't run very often, and sessions last longer than the timeout
value.
Kirk