Welcome Guest, Not a member yet? Register   Sign In
Session files
#3

Clean up is determined by the PHP runtime configuration items gc_probability divided by gc_divisor. That ratio defines the probability that the GC (garbage collection) process is started on any session initialization. So, given 1/100 there is a 1% chance that the GC process starts. (docs)

I've highlighted probability and chance to point out there is no guarantee GC will happen once every 100 times per the 1/100 example. It could happen twice in a row and then not again for 200 (and potentially many more) session initializations.
Reply


Messages In This Thread
Session files - by donpwinston - 06-28-2018, 11:01 AM
RE: Session files - by kilishan - 06-28-2018, 12:38 PM
RE: Session files - by ballpumpe - 04-27-2021, 09:41 PM
RE: Session files - by dave friend - 06-28-2018, 02:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB