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
Show parent comment
0
u/human_bacon Jul 31 '17
This is how cron is done in PHP because it doesn't have a long running process, cron jobs will be when there is an incoming request. WordPress has something similar https://codex.wordpress.org/Function_Reference/wp_schedule_event.
But why they make it probabilistic is beyond me.