Page 1 of 1
Sessions are not deleted when browser window closed by user
Posted: Fri Oct 31, 2003 9:56 am
by kneejnick
Sessions are not deleted from /tmp when browser window closed by user.
GC does not pick them up, even though the probability is set to 100, and maxlife = 1
Any ideas?
Posted: Fri Oct 31, 2003 11:09 am
by volka
and session.gc_divisor?
did you check those values with
or by looking into php.ini?
Posted: Fri Oct 31, 2003 11:09 pm
by evilMind
I use cron to get rid of all the session files about every hour to pick up the files that php doesn't "collect".
If you open the dir (usually /tmp) and ereg (or preg) out the sess_* files you could then check the lifetime on each of the files, to see when they were last modified, and then delete(unlink) based off of that.
Posted: Fri Oct 31, 2003 11:16 pm
by evilMind