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:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 2:09 AM
> To: [EMAIL PROTECTED]
> 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?
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to