Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73203 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78229 invoked from network); 17 Mar 2014 08:52:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2014 08:52:56 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.213.53 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.213.53 mail-yh0-f53.google.com Received: from [209.85.213.53] ([209.85.213.53:63316] helo=mail-yh0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1E/D0-06931-6E7B6235 for ; Mon, 17 Mar 2014 03:52:55 -0500 Received: by mail-yh0-f53.google.com with SMTP id v1so4875778yhn.26 for ; Mon, 17 Mar 2014 01:52:51 -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:content-type; bh=/RQ+zCsLiF37lwJK0MjivNzxKViUer5aRiZ+AcfGaGQ=; b=LiUtJ9yTGfa6pVjXsPiARif+4dOgpCt0nYoaJyRLidbtgaOIy1NFCte60DopgG5KyP BH+whzHdV70rzoaPA/wwcbLGfh6jLOmLYD8VsRAx73ktufD5YCXqga+9UxOjGwLty21Q n1CH3TKuLU+dr+pz80onHuczLRN62AG8ktFcc= 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:content-type; bh=/RQ+zCsLiF37lwJK0MjivNzxKViUer5aRiZ+AcfGaGQ=; b=H+kK60gslla+n/ioozsJUZ1HkFP2kHD4K2PPMcRUsX394WFU3na4hq9Ar/hhgUatSG 5zLf+EN7V6ZRa9WStQhVFU41tnJlUzE5T8K0NAamIBgOrsfsyRAmN1T4YM0iBdMW8DDs R9I7Y7WsH+co5r6sBWM4XNl6PvOfJ6guJ/6NfKqnYt5agjXE5HoDChDc9nelAjUdKPqC wQSLKxuUjVT0PbMolvizjRTclZSOwG2O7SZIgB+RdS8yRmrmp46UoasXJx50M5uJP5xc +oQMfMmO5Z+wWx5uOsC7yNffahx3O8LquTk1X73MRWm+kTjdDVhqGfISRNPOyh26QD3W h79w== X-Gm-Message-State: ALoCoQkEOtfd1erfy6emwAaDwSFpJ/RMCaGEog0NTcCoredrFvpfkLDtu4w/cVHXIh2T4MvxhJgC MIME-Version: 1.0 X-Received: by 10.236.38.74 with SMTP id z50mr214913yha.134.1395046371658; Mon, 17 Mar 2014 01:52:51 -0700 (PDT) Received: by 10.170.188.139 with HTTP; Mon, 17 Mar 2014 01:52:51 -0700 (PDT) In-Reply-To: References: <5324FE40.1070704@sugarcrm.com> <532603A0.8060802@sugarcrm.com> Date: Mon, 17 Mar 2014 10:52:51 +0200 Message-ID: To: Yasuo Ohgaki Cc: Stas Malyshev , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Revert/extend/postpone original RFC about read_only, lazy_write sessions From: narf@devilix.net (Andrey Andreev) Hi, On Mon, Mar 17, 2014 at 2:09 AM, Yasuo Ohgaki wrote: > Hi Andrey, > > On Mon, Mar 17, 2014 at 8:07 AM, Andrey Andreev wrote: >> >> >> "last used", "last updated", "last modified", "last accessed" ... >> >> however you call it, it always exists in some form. Without such a >> > >> > Last used and last modified are very different things. Nothing prevents >> > one from tracking either. We need to check it is done properly and is >> > compatible with old handlers, but it should be entirely possible to do >> > it in a BC way. >> >> See, this is what I meant with 'read_only' it may be a name closely >> explaining what it does, but in fact it has an essentially different >> meaning. :) The session module only uses one of those timestamps is >> what I meant here. And it may be possible to handle that in a BC way, >> but the RFC doesn't mention if that's really the case and/or how it >> could be done - this is stuff that must be addressed. > > > It updates time stamp always. > > It does > > "write data if data is updated" > or > "write data if save handler does not have update API" > or > "update time stamp if it is needed" (e.g. memcache does not need to update > time stamp since it updates time stamp by read. It's save handler > implementation choice what to do with update API) > > For save handlers like memcahe/memcached, session module is writing back the > same data just to waste resources when session data hasn't changed. And what about userland session handlers?