Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92159 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2250 invoked from network); 8 Apr 2016 07:57:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Apr 2016 07:57:12 -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.42 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.218.42 mail-oi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:34777] helo=mail-oi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E1/C1-25122-75467075 for ; Fri, 08 Apr 2016 03:57:12 -0400 Received: by mail-oi0-f42.google.com with SMTP id s79so128266356oie.1 for ; Fri, 08 Apr 2016 00:57:11 -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=JY+22hJNG3SFLND5VmYAU4TeSPL7Hz+rAIjATY+8le0=; b=idFXrpjKx+VGBgNVnKn6JeZ8fiiQSN+RN0pmcLNGf3bHd2ows2963KPGSDna7SgYuk p6SKtqwHN2AvVfp20Hbe8bUa0bC4ybDPzjlxuwvMMXa2TETjdS35AiqJ+TJr7JE92ebu /7G1U4UtRBI0ezxPXrMnRsSF070uyBT1WkgVk= 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=JY+22hJNG3SFLND5VmYAU4TeSPL7Hz+rAIjATY+8le0=; b=K80Owo4Rok+eF+HrZJvWVRpaHdxDSoahPwe58l5fAM7gA6P8OZVScvFivd1sMvH937 lCN2fRrSBf+HyzocIzk5+4c2fQIUV222kWWFq/Uskx9c4qEtJ1MyHW+7h61Tn1RRC5V1 hnXG9XrsyC1txGH+QHw7qhudCo9FzrfgLlmoawUIZ2lSca0E87l2oVNUP0Diw+zbn8kf oiqgBW9jyY8UHXKQzjqIQyceFuWyqTKggAPIgEC23oceJ3tocWAAV/DjAeP+7BeFaLBL /zwEGw2j9uC6Xjd8/UrQn2eegiKGpp7CUBwGpk9GsCTSIdOx0qwVZWwnTiKyfZaDIcmI QKEw== X-Gm-Message-State: AD7BkJJPLZLSfLy0IBFK9Cs/S3eOfo5LNMEt/2/fma2P4cWJ1IBo+ypaNhYLQRG8FTNXh9KQ16Nm2UMm3+HLFw== MIME-Version: 1.0 X-Received: by 10.157.45.83 with SMTP id v77mr3734386ota.149.1460102229145; Fri, 08 Apr 2016 00:57:09 -0700 (PDT) Received: by 10.202.175.87 with HTTP; Fri, 8 Apr 2016 00:57:09 -0700 (PDT) In-Reply-To: References: Date: Fri, 8 Apr 2016 10:57:09 +0300 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113cf978b45cd5052ff48a80 Subject: Re: [PHP-DEV] [RFC][Discussion] Add session_gc() From: narf@devilix.net (Andrey Andreev) --001a113cf978b45cd5052ff48a80 Content-Type: text/plain; charset=UTF-8 Hi, On Fri, Apr 8, 2016 at 8:12 AM, Yasuo Ohgaki wrote: > Hi Andrey, > > On Fri, Apr 8, 2016 at 12:46 PM, Yasuo Ohgaki wrote: > >> > >> The signature for SessionHandlerInterface::gc() accepts a TTL value as a > >> parameter; session_gc() can too: > >> > >> function session_gc($ttl = ini_get('session.gc_maxlifetime')) {} > >> > >> * Note: The current patch doesn't actually ignore gc_probability, but I > >> think that's by mistake (also relevant to my previous point). I'll > comment > >> on the PR on GitHub. > > > > Good point. > > Since session module does the job if module should execute GC or not. > > It should be 1 or very short time. > I don't understand what you're saying here. Is it that gc_maxlifetime should be 1 second? o.O > > PS(gc_maxlifetime) is needed, so I fixed the last commit. > > It is necessary for probability-triggered GC because you don't have another way of giving a TTL value then, but that's not the case for a direct session_gc() call. Cheers, Andrey. --001a113cf978b45cd5052ff48a80--