Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83053 invoked from network); 1 Mar 2015 04:54:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2015 04:54:15 -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.192.50 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.50 mail-qg0-f50.google.com Received: from [209.85.192.50] ([209.85.192.50:46157] helo=mail-qg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/43-63732-57B92F45 for ; Sat, 28 Feb 2015 23:54:13 -0500 Received: by mail-qg0-f50.google.com with SMTP id e89so20225034qgf.9 for ; Sat, 28 Feb 2015 20:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=boOXiiL3iBCkCzWHx2w4ewoIgqOaYL6Dcp7VcRrlIjI=; b=rpWSmeghsUJ2ufxzz6OL/rRxBZLD34jx6dh3s5MxgHCF5sa+J55wL4hvZHd8zs+UCh +1YMpoDZEXgGxU7FYUR2xp2LrIwl19i+NFydu76N/EvL2Cpoyc91s1nQp85f0fzmXFYd NTsn1ijlc1EiRt7YWfmZ33X0bcVEcd3lumFSBqlK8rVpj1IHItpRcPoqH02p3oknwluZ MFuguKAIoE2jQTfQ/vzPe0rbX9IiIsfLibxp9XOltsNHWhZMEBfygUM3RrZH/T4tNKS1 V3cf2kIwkxLy4Nho0OP7Y0Nj7bxIp6nPv1fUrOD4vN9rn+mxYCAXYheN8FtBC1yR1Qvc kDbg== X-Received: by 10.140.131.9 with SMTP id 9mr42033358qhd.59.1425185650728; Sat, 28 Feb 2015 20:54:10 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Sat, 28 Feb 2015 20:53:30 -0800 (PST) Date: Sun, 1 Mar 2015 13:53:30 +0900 X-Google-Sender-Auth: L7no-HE-GJvwMvFtb3CKFCXZtlg Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a1135162a7366f3051032e4ea Subject: Bug #69127 session_regenerate_id(true) randomly generates a warning and loses session data From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1135162a7366f3051032e4ea Content-Type: text/plain; charset=UTF-8 Hi all, There are too many things that I would like to improve ;) https://bugs.php.net/bug.php?id=69127 This bug is known fatal bug for session module. I proposed "lazy_destroy" to fix this before, but it declined. I think the name was wrong. With the proposal, session module destories session data with lazy manner, but it's actually precise manner. i.e. Session module and browser is _not_ synced, so destroy must be done async manner (~= lazy manner. For example, delete session data 60 seconds later). The reason why session_regenerate_id(true) fails is it deletes session data immediately even if session and browser is not in sync. Session and browser cannot sync because there is no means in HTTP/Cookie. Is there any other better idea for this? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a1135162a7366f3051032e4ea--