Re: [RFC][Discussion] Add session_gc()

From: Date: Mon, 18 Apr 2016 07:51:37 +0000
Subject: Re: [RFC][Discussion] Add session_gc()
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-92397@lists.php.net to get a copy of this message
Hi, On Mon, Apr 18, 2016 at 3:26 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > > Probability based GC is unreliable and can reactivate very old sessions > without "Precise session management RFC" and you opposed the RFC. > > While I agree that calling session_gc() on a regular basis is the better option, that doesn't mean probability-based GC is inherently unreliable. The problem you're referring to here is a logical one, not caused by the API, and is easily fixable - we just have to call SessionHandler::gc() before the current session is initialized. That is, before SessionHandler::read(), but after SessionHandler::open(). In fact, I think you've mentioned this before, so it's not like you don't know about it. Cheers, Andrey.

« previous php.internals (#92397) next »