Skip to content

Commit 7fd8435

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 a8833c5 commit 7fd8435

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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)