We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3f7ef1 + 8574541 commit 6d383d8Copy full SHA for 6d383d8
lib/internal/Magento/Framework/Session/SessionManager.php
@@ -504,18 +504,8 @@ public function regenerateId()
504
return $this;
505
}
506
507
- //@see http://php.net/manual/en/function.session-regenerate-id.php#53480 workaround
508
if ($this->isSessionExists()) {
509
- $oldSessionId = session_id();
510
- session_regenerate_id();
511
- $newSessionId = session_id();
512
- session_id($oldSessionId);
513
- session_destroy();
514
-
515
- $oldSession = $_SESSION;
516
- session_id($newSessionId);
517
- session_start();
518
- $_SESSION = $oldSession;
+ session_regenerate_id(true);
519
} else {
520
session_start();
521
0 commit comments