Re: session / garbage collection problem
| From: | Anthony Kaufman | Date: | Fri, 19 Dec 2003 23:18:39 +0000 |
| Subject: | Re: session / garbage collection problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173049@lists.php.net to get a copy of this message | ||
Redhat 9
kernel 2.4.20-18.9bigmem
ext3 fs
"Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message
news:3FE3D124.7040706@webglobe.sk...
> What filesystem and OS is this?
>
> Anthony Kaufman wrote:
> > PHP Version 4.2.2
> > Apache 2
> > RH 9
> >
> > The problem is that session files in the /tmp directory are completely
> > cleared out at "random" intervals of time. We assume that the
randomness is
> > due to our session.gc_probability setting of "1" causing it to run for
1% of
> > new sessions. What we don't understand is why the garbage collector is
> > removing valid sessions. session.gc_maxlifetime is set to 86400 (24
hours)
> > so it should keep them around for a good long time. However, it seems
that
> > ALL session files are deleted when the garbage collector runs. In some
> > cases session files were deleted for sessions that had been around for
less
> > than a minute. We've thought of several hacks that would control the
> > problem but we can't come up with any way to fix it.
> >
> > Thanks in advance,
> > Anthony
> >