Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71313 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38503 invoked from network); 20 Jan 2014 09:17:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 09:17:56 -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.217.174 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.174 mail-lb0-f174.google.com Received: from [209.85.217.174] ([209.85.217.174:33532] helo=mail-lb0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/77-02192-2C9ECD25 for ; Mon, 20 Jan 2014 04:17:54 -0500 Received: by mail-lb0-f174.google.com with SMTP id l4so3079607lbv.19 for ; Mon, 20 Jan 2014 01:17:50 -0800 (PST) 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:content-type; bh=gZvnzHQ9ZJXxvGvtWWFGA1Ixgk4Qt79W61X2Rj78mt0=; b=fm4BqKtDbl20QEsmRf7NAFYcn2WeP/GxnZKrbKkkgFMA8kN+TTKIkb+9+mXUNI8rOC 3Vx0NtHbkfIsg4KZj8Qra+h/wGJb8+2zZlIoFleChOZ6k259YP/vPA2TOJphzXbWFOVh wmixMI6deAJs7koZv9/uQyteNUkaIMXPpjllPfucy7djNTZyYrpVrQTIvWFciZCnIP0s Ivc0rdnvjrWlV7JzyYLnChEqQG+/4GLdgvakO4owGznyXK7dRheFCLcdc1frQMFAHYb1 6mUN3yTGATzorDX58P3W2L/hHNgwaYTkXZJSv8f1hkR2axcc5L2jxk5kbIIHUO33dqM8 EzqA== X-Received: by 10.112.138.233 with SMTP id qt9mr1040661lbb.34.1390209470813; Mon, 20 Jan 2014 01:17:50 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Mon, 20 Jan 2014 01:17:10 -0800 (PST) In-Reply-To: <52DCE356.5040600@sugarcrm.com> References: <52DC905F.2080705@sugarcrm.com> <52DCAE75.8070401@sugarcrm.com> <52DCD1C5.8080109@sugarcrm.com> <52DCE356.5040600@sugarcrm.com> Date: Mon, 20 Jan 2014 18:17:10 +0900 X-Google-Sender-Auth: 6J_gJNDct6HmBdJboZg8ei2BC4M Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e01229710abda1604f0635de0 Subject: Re: [PHP-DEV] [VOTE] Introduce session.lock, session.lazy_write and session.lazy_destory From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e01229710abda1604f0635de0 Content-Type: text/plain; charset=UTF-8 Hi Stas, On Mon, Jan 20, 2014 at 5:50 PM, Stas Malyshev wrote: > > I'll write clearly that "end users" should never enable dangerous > > options unless > > developer explicitly allows it. I'll also write that developers are > > I don't think we should provide options that need disclaimers that say > "do not use it unless in very rare cases". If you are experienced enough > that you need this rare case, you can implement your own session handler > that does that. Especially given that the only use case I have seen so > far actually does not need this feature and works just fine with much > safer and smaller feature (session unlock, aka session_discard, aka > session_abort). This is feasible option. There is session_abort() already. It's nice to have session_unlock(). I'll add session_unlock(). It requires new save handler API, but API is modified anyway. I understand your discussion and anxiety. People do stupid things w/o knowing what they are doing. Yet, I would like to have "non transaction query" like session data handling, since there are apps that work as it should without additional/modified code and enjoy much better performance. I'll change voting option so that people could vote feature by feature. There are 3 users including me who vote to this RFC. They have to vote again. I'll send mail when I finish editing the RFC, please hold to vote. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e01229710abda1604f0635de0--