RE: [PHP] Can I rely on session.gc_maxlifetime?
| From: | Johnson, Kirk | Date: | Tue, 25 Sep 2001 17:22:35 +0000 |
| Subject: | RE: [PHP] Can I rely on session.gc_maxlifetime? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68739@lists.php.net to get a copy of this message | ||
> I thought that php works as you wrote. But sometimes I find that much
> older session are still "alive". I have 1440secs for maxlifetime, and
> if I bookmark a page with the session id I can use it till days or
> even weeks (I haven't tested longer time period :))
Are old files being re-used, or instead, is the session ID in the bookmark
causing PHP to create a new session file with that old ID? That has been my
experience: if a bookmark contains the session ID, PHP will re-use the old
session file if it still exists, but if the old file has been cleaned up,
then PHP will create a new session using the old ID in the bookmark.
Do you have access to the /tmp directory? If so, try to track this.
Kirk