Skip to content

Commit

Permalink
amended variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
elioermini authored and jignesh-baldha committed Aug 14, 2018
1 parent 3828ac5 commit ac42b70
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/internal/Magento/Framework/Session/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,18 +511,20 @@ public function regenerateId()
if ($this->isSessionExists()) {
//regenerate the session
session_regenerate_id();
$new_session_id = session_id();
$newSessionId = session_id();

$_SESSION['new_session_id'] = $new_session_id;
$_SESSION['new_session_id'] = $newSessionId;

// Set destroy timestamp
$_SESSION['destroyed'] = time();

// Write and close current session;
session_commit();
$oldSession = $_SESSION; //called after destroy - see destroy!

//called after destroy()
$oldSession = $_SESSION;
// Start session with new session ID
session_id($new_session_id);
session_id($newSessionId);
ini_set('session.use_strict_mode', 0);
session_start();
ini_set('session.use_strict_mode', 1);
Expand Down

0 comments on commit ac42b70

Please sign in to comment.