RE: [PHP] session_start() times and resets?
| From: | Johnson, Kirk | Date: | Thu, 25 Apr 2002 18:57:39 +0000 |
| Subject: | RE: [PHP] session_start() times and resets? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94626@lists.php.net to get a copy of this message | ||
See session.gc_maxlifetime in php.ini. The session timer is based on the
session file access (or modified?) timestamp. It gets reset every time the
session data is accessed, which is every time a page using that session is
requested.
Kirk
> -----Original Message-----
> From: Smileyq [mailto:smileyq@nashlinux.com]
> Sent: Wednesday, April 24, 2002 11:35 PM
> To: php-general@lists.php.net
> Subject: [PHP] session_start() times and resets?
>
>
> I have one question that I've been working about. When you setup a
> session to last a particular time say 1 week. If the user
> comes back to
> that page because the week is over to reset the session does the user
> then at that time reset the timer to yet another week. I'm trying to
> figure out a way to set something like this up so that if they choose
> not to come back for a period of time the session will delete but if
> they do come back it will just reset for another week .