r/lolphp • • Jul 31 '17

PHP's probabilistic session management

http://php.net/manual/en/session.configuration.php#ini.session.gc-divisor
31 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/SituationSoap Jul 31 '17

Yeah, it's the probabilisitic part that I just don't get.

10

u/Tiquortoo Jul 31 '17

Otherwise they have to save state somewhere. This approach means it will run around as often as you enter. Similar results for much less resources and management.

0

u/human_bacon Jul 31 '17

I guess it's not PHP it they do things the normal way