RE: [PHP] session expiretime
| From: | Johnson, Kirk | Date: | Tue, 27 Mar 2001 17:16:54 +0000 |
| Subject: | RE: [PHP] session expiretime | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45745@lists.php.net to get a copy of this message | ||
Yes and no. session.gc_maxlifetime is the right setting, and this means the
session will last *at least* this long. The setting in
session.gc_probability also has an effect. This gives the percentage of page
hits on which gc is launched. For example, if session.gc_probability = 1,
then on one out of every 100 page requests the gc routine gets launched. So,
on a really slow day where the server isn't getting many requests (or late
at night?), then the session can actually last much longer, since the gc
routine isn't getting launched.
Kirk
> -----Original Message-----
> From: Søren Boll Overgaard [mailto:soren@overgaard.at]
> Sent: Tuesday, March 27, 2001 2:09 AM
> To: php-general@lists.php.net
> Subject: [PHP] session expiretime
>
>
> Hello
>
> I am trying to figure out how long a session survives, if the
> user does
> nothing in his or her browser, to update the session.
>
> As far as I can see, the gc-process is controlled by this directive:
>
> session.gc_maxlifetime = 1440 ; after this number of
> seconds, stored
> ; data will be seen as
> 'garbage' and
> ; cleaned up by the gc process
>
>
> So, does this mean that the session will persist for 1440
> seconds, with the
> above directives inserted in php.ini?