When using the pecc memcached extension (or memcache, which I assume ..), if php session garbage collection (for example: session.gc_probability / session.gc_divisor) is disabled by setting probability 0?
These are stitches, as this may be logical for the following reasons:
A) The expiration time of the session is most likely simply saved by setting the expiration time of the stored key. EG: Each session is given a ttl expiration and is simply cleared by memcached when it expires.
B) In order to clear existing sessions that were not cleared by memcached itself, the memcached extension would have to dump all the data stored in the memcache daemon, check each key to see if the key matches a specific pattern, and then check when the key was added, and finally removed as needed. This is unlikely for the following reasons: 1) As far as I know, you should not indicate when the key was added to memcache. Only when it expires. 2) The dump + syntax would be very difficult for the memcache instance.
Again, is it entirely possible that the memcache (d) pecl extension just disables php session garbage collection?
Thanks.
source share