Posted by Dennis Εlund on 12/06/05 10:01
No, there is a garbage collector that will clear out old session files.
Every time a session starts it is (by default) 1 percent chance that it
will be run.
In php.ini
session.gc_probability = 1
session.gc_divisor = 100
Change this if you like. But it will also add some extra work to the
engine if you have high rate of visitors ( = collector runs too often).
If you want a neat session handling it's quite useful to take a look at
this:
http://se.php.net/manual/en/function.session-set-save-handler.php
and store session data in a database. It will give you much more
control over the data.
[Back to original message]
|