Skip to content

Commit

Permalink
No need to reconnect the bags to the session
Browse files Browse the repository at this point in the history
Bug https://bugs.php.net/70013 was fixed before the release of PHP v7.0
  • Loading branch information
rosier committed Apr 2, 2020
1 parent a8833c5 commit 7fd8435
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Session/Storage/NativeSessionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,6 @@ public function regenerate($destroy = false, $lifetime = null)

$isRegenerated = session_regenerate_id($destroy);

// The reference to $_SESSION in session bags is lost in PHP7 and we need to re-create it.
// @see https://bugs.php.net/70013
$this->loadSession();

if (null !== $this->emulateSameSite) {
$originalCookie = SessionUtils::popSessionCookie(session_name(), session_id());
if (null !== $originalCookie) {
Expand Down

0 comments on commit 7fd8435

Please sign in to comment.