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?
Sessions are not deleted when browser window closed by user
Moderator: General Moderators
and session.gc_divisor?
did you check those values withor by looking into php.ini?
did you check those values with
Code: Select all
<?php phpinfo(); ?>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.
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.
check out the code at:
http://www.devnetwork.net/forums/viewto ... 7593#67593
http://www.devnetwork.net/forums/viewto ... 7593#67593