Posted by ImOk on 07/08/06 02:52
Weird way of doing it. I guess one can set the probability to 100% to
do this every time.
But thanks, I will read about it more in the manual.
Alvaro G. Vicario wrote:
> *** ImOk escribió/wrote (7 Jul 2006 10:45:07 -0700):
> > I have cookies enabled. I clear the cookies, but when to the session
> > files eventually get erased?
> >
> > Does PHP check the sessions folder everytime for expired sessions and
> > erase them?
>
> Not every time, just randomly.
>
> The behaviour is defined by these directives:
>
> session.gc_probability
> session.gc_divisor
> session.gc_maxlifetime
>
> From manual:
>
> "session.gc_divisor coupled with session.gc_probability defines the
> probability that the gc (garbage collection) process is started on every
> session initialization. The probability is calculated by using
> gc_probability/gc_divisor, e.g. 1/100 means there is a 1% chance that the
> GC process starts on each request. session.gc_divisor defaults to 100."
>
>
> --
> -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
> ++ Mi sitio sobre programación web: http://bits.demogracia.com
> +- Mi web de humor con rayos UVA: http://www.demogracia.com
> --
[Back to original message]
|