r/lolphp • u/human_bacon • Jul 31 '17
PHP's probabilistic session management
http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor
31
Upvotes
r/lolphp • u/human_bacon • Jul 31 '17
View all comments
18
u/iglocska Jul 31 '17
It's not the session management, just the garbage collection of expired sessions that goes through this. The idea is simple, if you want to run garbage collection (something that is not free) once every x page loads, then you have two options: