Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92162 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8199 invoked from network); 8 Apr 2016 08:39:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Apr 2016 08:39:37 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.67 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.213.67 mail-vk0-f67.google.com Received: from [209.85.213.67] ([209.85.213.67:34757] helo=mail-vk0-f67.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/E2-25122-94E67075 for ; Fri, 08 Apr 2016 04:39:37 -0400 Received: by mail-vk0-f67.google.com with SMTP id a6so4897336vkh.1 for ; Fri, 08 Apr 2016 01:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1vw6PIvWt2idRe6K8RCSXpyElw0aoif86P+YfDq/VIw=; b=R9mkQxnqJSMN/KmsbrVDblidp6lCOkVfEIxrcIojEXY0DamdhWS4Ity+K1gySVdlg6 gBct0NhcUj7pp4iUASxlA++gJ0InrtPAR86sh7jlekBO6F96q1C4gJBbPF7s3hN7IxY0 gNLS8ynM/Nz3+x3DDeoDGgvjbG8pAang4IKuEvV/k4f3IGGqNu4pb8lfMkYbo+K96n21 dCGIBunqp48JshYytl56R2CxLpiosiX/eNEKwkPoP29Qn75/77Vfqg/wDDwjAiN24S2V En1be9pqJINdn2bNcAFnWiPHODFgMbIejZhuPl+FvsPnOmJtcbYuwKLJqpURaRIQZHVs hV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=1vw6PIvWt2idRe6K8RCSXpyElw0aoif86P+YfDq/VIw=; b=KPiIPTPJ/ObYx02dH9DTx/MGHj1X699FDZ/3MQ+PW2vtaxzg74OJ/bf/zDGoz+OQZa uvLdDl+P1UsLIIEWkZlPdtbqCmallAqsAcidtgypReiZ6QqL9nHTDKpgq1+u01Tus+rh ikpPxzdpF8OKVQU7ktqxWbsCkHAgLDxqEEhVwkzyO5Zocj6POVnOt8MX9bocYX5xvvFw O7rXsX3OWiqMbXy2trEGl4gyyrHXPyOXblcKP35+zzB1wigd76dWdpsSGRzEUFhO/R9l REb4YZ6W4Zs2GtirGIfUqPbKSCVv0nOe9ypiB66GCwB2d6GAB4HPrs5X29tiRw1hS2sW TX2A== X-Gm-Message-State: AD7BkJJcCUuyLjdjrgo3JpeW8OWA2Wc9eawUGQAAvxw/j1SnBn7xbYESBRCH+rCrkXof3vzTrQT7E4fr/D1FfA== X-Received: by 10.159.37.246 with SMTP id 109mr3553366uaf.91.1460104774715; Fri, 08 Apr 2016 01:39:34 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.159.40.7 with HTTP; Fri, 8 Apr 2016 01:38:55 -0700 (PDT) In-Reply-To: References: Date: Fri, 8 Apr 2016 17:38:55 +0900 X-Google-Sender-Auth: JpII4dO9nZSvxwZGOY06pERklyU Message-ID: To: Andrey Andreev Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][Discussion] Add session_gc() From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Andrey, On Fri, Apr 8, 2016 at 5:02 PM, Andrey Andreev wrote: > On Fri, Apr 8, 2016 at 6:46 AM, Yasuo Ohgaki wrote: >> >> ,,, >> >> > >> > Speaking of the documentation part - it's not hard to imagine A LOT of >> > people doing this: >> > >> > session_start(); >> > session_gc(); >> > >> > That's not a small problem. >> >> Shooting their own foot is not our problem, but leaving obsolete and >> possibly active session is ours. >> > > If you want to explicitly document something as a best practice, it IS your > problem when users shoot their feet with it Lack of proper API for required task is our problem. Misuse is not ours. IMHO. The best way to perform GC would be cron task. Low traffic sites can make sure obsolete session is deleted. High traffic site can avoid occasional slow down by GC. I suppose almost all high traffic sites uses memcached or like that does not require PHP's session GC at all, though. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net