RE: [PHP] session lifetime
| From: | John W. Holmes | Date: | Tue, 01 Oct 2002 19:21:50 +0000 |
| Subject: | RE: [PHP] session lifetime | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118413@lists.php.net to get a copy of this message | ||
> session.gc_maxlifetime specifies the number of seconds after which
data
> will be seen as 'garbage' and cleaned up
>
> Let's say it's set to 900. How is this counted, from the time of the
> session is initialized, or is this counter reset every time you go to
a
> new page. Does this makes sense?
It would only make sense if the time was reset each time the file is
accessed. So, if the session file hasn't been accessed for over 900
seconds, then it'll be cleaned up. Otherwise, you'd lose a perfectly
fine session after 900 seconds even if you're still active.
---John Holmes...