No need to reconnect the bags to the session

Bug https://bugs.php.net/70013 was fixed before the release of PHP v7.0
This commit is contained in:
rosier 2020-03-30 19:57:25 +02:00 committed by Jan Rosier
parent 5da141b8d0
commit 923c24f438

View File

@ -223,10 +223,6 @@ class NativeSessionStorage implements SessionStorageInterface
$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) {