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.
1 parent e719669 commit 86f25a5Copy full SHA for 86f25a5
lib/internal/Magento/Framework/Session/SessionManager.php
@@ -503,18 +503,9 @@ public function regenerateId()
503
if (headers_sent()) {
504
return $this;
505
}
506
- //@see http://php.net/manual/en/function.session-regenerate-id.php#53480 workaround
+
507
if ($this->isSessionExists()) {
508
- $oldSessionId = session_id();
509
- session_regenerate_id();
510
- $newSessionId = session_id();
511
- session_id($oldSessionId);
512
- session_destroy();
513
-
514
- $oldSession = $_SESSION;
515
- session_id($newSessionId);
516
- session_start();
517
- $_SESSION = $oldSession;
+ session_regenerate_id(true);
518
} else {
519
session_start();
520
0 commit comments