Welcome Guest, Not a member yet? Register   Sign In
Question about deleting expired session files.
#2

The GC does delete them automatically, but that doesn't happen immediately.

PHP has a gc_probability, gc_divisor session INI settings which form a "chance" value for the garbage collector to run during a request. Then, when it runs, it would delete sessions that haven't been used for more time than what is configured as gc_maxlifetime.

It's a bit confusing a first, but this is necessary for performance reasons, don't worry about it - old sessions will be deleted after some time, just as long as you don't have a gc_probability of 0.
Reply


Messages In This Thread
RE: Question about deleting expired session files. - by Narf - 09-02-2015, 01:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB