Edit report at https://bugs.php.net/bug.php?id=70013&edit=1
ID: 70013
Updated by: yohgaki@php.net
Reported by: jakub at zalas dot pl
Summary: Reference to $_SESSION is lost after a call to
session_regenerate_id()
Status: Assigned
Type: Bug
Package: Session related
Operating System: Debian
PHP Version: 7.0Git-2015-07-07 (Git)
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
So what should I do? Restore old behavior or not?
Previous Comments:
------------------------------------------------------------------------
[2015-07-11 20:44:59] ab@php.net
Hi,
I guess we should revert the change to PHP5 behavior. Please do a proof read of
https://wiki.php.net/rfc/session-lock-inihttp://grokbase.com/t/php/php-internals/142dbaan9h/vote-rfc-introduce-session-start-options-read-only-unsafe-lock-lazy-write-and-lazy-destroy
and also bug #65746. This behavior change is a subset of the mentioned RFC which had major concerns
and was declined. Until a proper solution is suggested and accepted, there is no reason to go for BC
breaks.
Thanks.
------------------------------------------------------------------------
[2015-07-11 06:39:55] mike@php.net
Autocorrection FTW.
Of course I meant application developer and s/codes/code/
------------------------------------------------------------------------
[2015-07-11 06:38:01] mike@php.net
It may seem more reasonable from an implementors point of view, because you're looking at the C
codes, but definitely does not seem reasonable for an appointment developer.
This breaks userland in an very unintuitive way.
------------------------------------------------------------------------
[2015-07-10 14:53:19] laruence@php.net
I'd like mark this as won't fix.. the new behaviors seems more reasonable
------------------------------------------------------------------------
[2015-07-10 09:06:02] mike@php.net
+1, "deleting the session", if ever should mean on the backend under the old key; the data
will stay the same and a reference to it should be kept intact.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=70013
--
Edit this bug report at https://bugs.php.net/bug.php?id=70013&edit=1