Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71369 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64013 invoked from network); 20 Jan 2014 23:07:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2014 23:07:10 -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.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:58034] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/20-02192-C1CADD25 for ; Mon, 20 Jan 2014 18:07:09 -0500 Received: by mail-lb0-f170.google.com with SMTP id u14so5375386lbd.15 for ; Mon, 20 Jan 2014 15:07:05 -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=i3Lt53bIUK9X4W4uyWE2/VTW8LRFhI3buF1wmuxCy3E=; b=h17v90zu/AgnGvjdf0JmRHSWfMJnB2HpLwpzTRPZUMj4WkDqiG100+6EINkcfdsZuq gjVzrXAlfC94OOODyU8XoR6MPdnE7a4KU5dLKWfTm6X2547WE7FIW87OpVUp3d1On2vA cCv390+h+MHeg1aXjQkYSoUlPuF/dx+xaHOm8tMDv+vnJ3TF4Qi5KQL8D+S3oY1+VX0D h2m5jXP8t91JiMz/72EI5YgFwIZ9+i/1ruPpiyFHx82w1uhqhlnnHYbTDZ9qAB4vOJmS iopb3ZLbkFzDtVO1bka9NDUJR1xfDaToUE1Etvv3krNRc2rI7FjJ0NYljBgLiv40lGut bkzA== X-Received: by 10.152.28.230 with SMTP id e6mr13574954lah.3.1390259225546; Mon, 20 Jan 2014 15:07:05 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Mon, 20 Jan 2014 15:06:25 -0800 (PST) In-Reply-To: <1390227486.3439.134.camel@guybrush> References: <52DCDDDB.70000@tobin.nl> <1390227486.3439.134.camel@guybrush> Date: Tue, 21 Jan 2014 08:06:25 +0900 X-Google-Sender-Auth: LQ3_pHJOQ1hblbMCFe5TiDujmIg Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: Bas van Beek , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0160b79a48d5cf04f06ef325 Subject: Re: [PHP-DEV] [VOTE] Introduce session.lock, session.lazy_write and session.lazy_destory From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e0160b79a48d5cf04f06ef325 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Johanns and Stas, - session_close() - close session, *do* write, unlock file We have session_write_close() (session_commit() is alias), so it may be better to remain as it is. On Mon, Jan 20, 2014 at 11:18 PM, Johannes Schl=C3=BCter wrote: > I do think this also should be application defined, not configuration > defined. So using functions for that is better than ini options. Only > the individual script nows what it needs, global configuration for > tuning one application will break another on the same system and makes > it harder to write portable appliations. > Stas and your discussion sounds reasonable to me, too. I don't mind files_ext implementation to be a PECL module as a reference implementation. It would be a module that does not provide any function, but only a files_ext save handler and lock INI. session_unlock() is a simple new function and it does not require RFC, but it is mentioned in it. However, unlocking session after start makes thing more complex for save handlers. It is better to specify when session is started. Therefore, it would be better to pass new behavior options to session_start(). session_start(array('lock'=3D>false, 'lazy_write'=3D>true, 'lazy_destroy'=3D>120)); It may also set other options for session like save handler, serializer, expire, etc. Since session.lazy_destroy is required for reliable session_regenerate_id() operation, it remains but not exposed as INI option. Users has to pass option to session_start() to disable it. In short, no new INI is added. Option parameter is added to session_start()= . I'll add new API for save handler to get start options. I would like to change the RFC like this. Any comments? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e0160b79a48d5cf04f06ef325--