Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31301 invoked from network); 12 Apr 2016 17:25:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2016 17:25:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.44 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.44 mail-pa0-f44.google.com Received: from [209.85.220.44] ([209.85.220.44:36855] helo=mail-pa0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/A2-13103-C7F2D075 for ; Tue, 12 Apr 2016 13:25:16 -0400 Received: by mail-pa0-f44.google.com with SMTP id bx7so16998853pad.3 for ; Tue, 12 Apr 2016 10:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=3aW7JFqYZNlVd9pga/ynfLNaDJZg1xtZnwl5fcDtzlY=; b=KGx43YggW/m+zxmAF+vn1WGZdYNhCY7wE9xjiVGe7mGaSH1bwzcfeFCoKSs1ioRhgJ P7O1RDtpes+sdDhK9ZrA/oBvYR8bZrR/KLUPUk8chS48YvZgrEhCum3E7eqOm/Sm6dSG dOaXZkObldxGxfu2IhpvNXLJC6jdLZqvo8onTRDTed5hKKEF2IBeRBq8sY8Bm3qvJYK8 LIrjsNx+kkW6DWJDDdSbEUJcFlY9MdnH/ICZGbq5+9PMFsKpgKDDnNk6f48/kC6bKkGE qc7EaGKybNRFjIC60miyti4bTunc2ABcmvjf8JDI8YF01jbiyGXGhUYwdODb2CVSuME/ FaTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=3aW7JFqYZNlVd9pga/ynfLNaDJZg1xtZnwl5fcDtzlY=; b=KS3lHYlblLVOSw3ZqGSlZUnvTbZPGmluOAkI/SNxRWTKG84S53OmFFiczgQvKfRzED +//29MJsk+Gz3CsiC9rUTbVBzsckWQej358bCANN6YB2w/FlrjknJ+ao6Zd5QXxL2xuX iKEm3c9VcwWWbw5rjJOa1rImlC8AbjcAfbwznmEtjVqDb+MOt/AW3ACeI/UNx0Emp7ae NeK+OWQXR3J3G8szPjTOokc0lvPTgpk1JZx3IjrPtHoL/QsrSSs+tJRXYDUZ+/IWSbdg sx9AvzCsVVkSkahPPQ5vi0ulp/4pyvZi9zukxtTjn+ix9NFToFQDqIWSAtD9ozKPDWI2 Fyfg== X-Gm-Message-State: AOPr4FUbis55vj17prbh3PNY81gXu3ua55AQ6pIOjFL4cWIKAvR1dKU2FFAsI6auEbpqzA== X-Received: by 10.66.162.193 with SMTP id yc1mr6268196pab.148.1460481913165; Tue, 12 Apr 2016 10:25:13 -0700 (PDT) Received: from Stas-Air.local (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id r68sm45031743pfa.33.2016.04.12.10.25.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Apr 2016 10:25:11 -0700 (PDT) To: Yasuo Ohgaki , Andrey Andreev References: Cc: "internals@lists.php.net" Message-ID: <570D2F74.7060702@gmail.com> Date: Tue, 12 Apr 2016 10:25:08 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC][Discussion] Add session_gc() From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Lack of proper API for required task is our problem. Misuse is not ours. IMHO. No, it is our problem. We can't just create whatever and throw it over the fence. The properly designed API has to make correct use very easy and incorrect use very hard. That's the point of designing the API, not just giving people means to run random pieces of C code from PHP. With that in mind, the API should be designed so that misuse - especially unintentional misuse - is hard. Not impossible - that we can't do - but hard. It *is* our responsibility. > 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. Please be aware that the use case you are currently considering - whatever it is, does not matter - is about 0.001% of all use cases, or less. Just because PHP runs on millions of sites with wildly different requirements. So we should support big sites, small sites, slow sites, fast sites, etc. -- Stas Malyshev smalyshev@gmail.com