8000 No need to reconnect the bags to the session · enflow/symfony@923c24f · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.

Commit 923c24f

Browse files
committed
No need to reconnect the bags to the session
Bug https://bugs.php.net/70013 was fixed before the release of PHP v7.0
1 parent 5da141b commit 923c24f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,6 @@ public function regenerate($destroy = false, $lifetime = null)
223223

224224
$isRegenerated = session_regenerate_id($destroy);
225225

226-
// The reference to $_SESSION in session bags is lost in PHP7 and we need to re-create it.
227-
// @see https://bugs.php.net/70013
228-
$this->loadSession();
229-
230226
if (null !== $this->emulateSameSite) {
231227
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
232228
if (null !== $originalCookie) {

0 commit comments

Comments
 (0)
0