Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8807 invoked from network); 29 Oct 2013 10:44:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2013 10:44:53 -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.215.42 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:51149] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/B3-21587-3A19F625 for ; Tue, 29 Oct 2013 05:44:52 -0500 Received: by mail-la0-f42.google.com with SMTP id ea20so6361794lab.1 for ; Tue, 29 Oct 2013 03:44:48 -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:content-type; bh=ncRm0SM/UpzTMCzwlyx4nFuBCuP5HsdT6vYMrequW9E=; b=VvyOJPkuioeaungkyEzJwsuISV2eN8AdPrTG0oGp0v/qZHtQ5gqlF//xg8OPOjGTJz o9EmiruVwrqesKYwp0W3NhE94TE4SfNPSRUlIh6vgcWMGo04PGd8lfXDEFYL2At6vt/w osTaLxGRWH0GfnC33/UaPrHdhLnV4Buc/v0XQOjmNM3OiMHLTxmBx800zTcS2mGF7cQw 1Yd5hY3YWDcZDoZKfbhokUZdxl2xO3OamBwkW7qNgZ3xTOEDWyuB3n04dKL7dtLU89FA bvqoKyzjWNzswxVa8+cWNfRYdyYpmIH2L17VnO5eaNosoHK8JEoveKtKzyFQF9W6c5na Z1Pg== X-Received: by 10.152.8.199 with SMTP id t7mr229916laa.63.1383043488609; Tue, 29 Oct 2013 03:44:48 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.154.201 with HTTP; Tue, 29 Oct 2013 03:44:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Oct 2013 19:44:08 +0900 X-Google-Sender-Auth: pAi_jfqxQq8mDg1jp3P9DeWPGzo Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=089e0158ace0d8f9e004e9dee7d5 Subject: Re: session_regenerate_id(true) by default From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e0158ace0d8f9e004e9dee7d5 Content-Type: text/plain; charset=UTF-8 Hi all, On Tue, Oct 22, 2013 at 3:53 PM, Yasuo Ohgaki wrote: > Hi all, > > Without 'true', session_regenerate_id() will not delete old session data > which may contain sensitive data. It was made to 'false' by default for > users relying on the bug. (PHP 4.x, IIRC) > > Almost all users should call session_regenerate_id() with 'true' > parameter. Therefore, I would like to suggest make it 'true' by default > from next PHP. > > Any comments? > I've created RFC for this. https://wiki.php.net/rfc/session_regenerate_id I think Rowan's proposal is the best, so this RFC proposes to raise E_DEPRECATED error. On Wed, Oct 23, 2013 at 8:55 PM, Rowan Collins wrote: > So raise an E_DEPRECATED if you don't pass the parameter, and document > that passing true will normally be the desired behavior. Then in some > future major version, remove the default value, making it an E_ERROR or > whatever to omit it. If there are any more comment, I'll appreciate it. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e0158ace0d8f9e004e9dee7d5--