Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68479 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61418 invoked from network); 10 Aug 2013 10:11:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Aug 2013 10:11:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-lb0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:51800] helo=mail-lb0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/AD-06453-9E116025 for ; Sat, 10 Aug 2013 06:11:54 -0400 Received: by mail-lb0-f176.google.com with SMTP id w10so3688586lbi.7 for ; Sat, 10 Aug 2013 03:11:50 -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:content-type; bh=gaVx6uGBfebtvREa0cKknRuTkDVtF3Su81CzkoyH7G0=; b=g9CzY8aqFI/QLUl+yhzp1dWgNsrlWeNtKQs9ZZlyhv+LTNhjaCNFrbJhm+DCcpbkKP 9lPYQDzZekJ8DXekDdkmGKtaOH6hHdtiAdj193UXxdfsgMZGRzNa9G1Jl8deTH0B3ads ZNfOpx7QjnKVazyHMSe5dfxi/6/LjrRrNAZRtZsHRUfTbNn4IGI6z0UW31XcmNS8dMh3 st5IpIle3Euij45MIlXmiNwTC8O8GIcBdOXl54gIjsIhx4y6K9HtZn2c07W6Tx7QrJsu FWv99WgI7Pmi6Rg0gf2Y9F+C7s5xDM3ypROiQXTjjFKlbbu00yio0/MJ9q/YqntI+kM4 MaZQ== X-Received: by 10.112.136.195 with SMTP id qc3mr5992699lbb.55.1376129510220; Sat, 10 Aug 2013 03:11:50 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.127.233 with HTTP; Sat, 10 Aug 2013 03:11:10 -0700 (PDT) In-Reply-To: References: Date: Sat, 10 Aug 2013 19:11:10 +0900 X-Google-Sender-Auth: MBi9jAYKGV7znxRz5cXYLfZ8GX0 Message-ID: To: Leigh Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e011770db9f28b104e3951e60 Subject: Re: [PHP-DEV] Request #17860 Suggestion: auto detect whether session changed From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e011770db9f28b104e3951e60 Content-Type: text/plain; charset=UTF-8 Hi Leigh, On Sat, Aug 10, 2013 at 7:02 PM, Leigh wrote: > I think custom handlers should still function as they always did, you > should not track whether the session changed or not for them, they can > easily track that themselves. > > For the built-in file based handler, do you think it would be a valid > compromise to update the mtime of session files instead of not writing to > them at all? This way you do not break BC, and maybe get a performance > increase too. (and can be on by default) > > Disabling writes altogether (even optionally) with documented hard to > debug unexpected side effects isn't a good thing in my opinion. > I agree. Let it handle save handlers. I'll create a API for touching session data, if save handler does have the API, operate session as it is now. If save handlers implement touch API properly, we get performance gain and no headaches. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e011770db9f28b104e3951e60--