[imp] /tmp directory not being purged of session files.
Christopher Crowley
ccrowley at tulane.edu
Wed Dec 11 15:05:04 PST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andy -
You were clear. And I understood what you meant.
This is a problem that I am observing (with garbage collection) in
PHP 4.2.3. ( I recently upgraded from 4.2-dev to be able to use
php_accelerator). But, I currently see files in the /tmp/session
dir that contain active session information which are older than
gc_maxlifetime.
To test, I increased gc_probability, to 3, then 5, then 25. It
still didn't clean up the session files. When I did a ls -l on the
/tmp/session dir, I saw files that were old, really old --hours old.
My gc_maxlifetime = 3600 in php.ini. I confirmed these settings by
<? phpinfo() ?> .
I noticed this because my MRTG graph kept increasing, instead of
indicating a relatively steady number of logins.
I filled a bug report with PHP.net. I have been asked to upgrade to
the latest SNAP version, and check again, which I am in process of
doing.
Christopher Crowley
TIS Network Services
Tulane University
ccrowley@tulane.edu
504.314.2535
PGP Key ID: 0x7CF18FDB
> > I am running PHP 4.2.3.
> >
> > Any comments on this? Have others seen this behavior with PHP
> > 4.2.3? Should I increase Garbace collection probablility to
> > remedy this?
>
> I run mine at gc_probability = 5 instead of 1, but on any
> reasonably busy machine it shouldn't really matter.
>
> Also, I hope I explained clearly what I meant by "active" sessions.
> In my terminology a non "active" session is not (necessarily) one
> that should be garbage collected. An "active" session is one that
> corresponds to a currently logged in user. A non "active" session
> is one that corresponds to a user that has logged out (or has not
> logged in yet) but still has a valid PHP session.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBPfeofc0q7cR88Y/bEQJxfgCgxxAbEmjP9AmZsyhvORCXqkwqjJoAoLzg
QWInylWEFmrqvWlfEQlAvx/R
=BX+G
-----END PGP SIGNATURE-----
More information about the imp
mailing list