Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83075 invoked from network); 18 Apr 2016 07:51:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2016 07:51:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.218.53 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.218.53 mail-oi0-f53.google.com Received: from [209.85.218.53] ([209.85.218.53:33775] helo=mail-oi0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/B0-11975-C0294175 for ; Mon, 18 Apr 2016 03:51:41 -0400 Received: by mail-oi0-f53.google.com with SMTP id r78so41585315oie.0 for ; Mon, 18 Apr 2016 00:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=Oilxf5QTzNekPlIMgYy/ri6MIOUt7/Cylm7CWq0BpC4=; b=dw0UGgizAnnoFFjZhr1vJ9sdGqBHYUB45kMdQDT4NsqqydoWUs/aLlwITNHaFhRzs6 0oYn1uj4PtN7bG3pl+mMZ47njwdtey9MP6rm6CDMCG4wncj8bkb33fHFIB4GJWOVKBqV uTYRD1iMk38ulLmTtGb3a8Ml+vQr3TibMC7vc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Oilxf5QTzNekPlIMgYy/ri6MIOUt7/Cylm7CWq0BpC4=; b=jwjJuk59yXX6pIIMV7NykcQFigfw//d78iBdbDhIptr9oNbxY3kIs38i3PHi53mSVW 8BCGLyV4wYD9J/svmDpoN4oCe6Hekqse1h9IcUFi+lJBq+aNWDvuHOslIj/RzFEXPQc1 M789lQRZ4cNWdE8vdy/QEYU/pDzTwhuwiF4AWUVo0DJxb1BjfIcnCt7IoSVvdkwV2g5n 2FEPHPXzJOZW0CQUA6J7hw+Af79flsMbR5Pr3RtGl3vGLCew2lxfusIR1Tsuop/0JfQ/ FYbCLGxrfn8mkHe5t9HyjNGqvY2mlLJCXeRrVAgR3SJ+zFtVkXvFOfUrMiv0OZdm6xLZ TS5A== X-Gm-Message-State: AOPr4FX+418eyqzL+BCKpYm6dFAZTVcP3lw48mZ9ipH8IsYBgLRO1v5w0IXKFi9tcAc+hn/QfQ6concxEGJg1Q== MIME-Version: 1.0 X-Received: by 10.202.104.204 with SMTP id o73mr2884182oik.18.1460965897805; Mon, 18 Apr 2016 00:51:37 -0700 (PDT) Received: by 10.202.175.87 with HTTP; Mon, 18 Apr 2016 00:51:37 -0700 (PDT) In-Reply-To: References: <570D2F74.7060702@gmail.com> <57115F42.2030502@gmail.com> Date: Mon, 18 Apr 2016 10:51:37 +0300 Message-ID: To: Yasuo Ohgaki Cc: Stanislav Malyshev , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a114087aa5e3cb70530bda15b Subject: Re: [PHP-DEV] [RFC][Discussion] Add session_gc() From: narf@devilix.net (Andrey Andreev) --001a114087aa5e3cb70530bda15b Content-Type: text/plain; charset=UTF-8 Hi, On Mon, Apr 18, 2016 at 3:26 AM, Yasuo Ohgaki 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. --001a114087aa5e3cb70530bda15b--