File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lib/internal/Magento/Framework/Session Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -514,18 +514,20 @@ public function regenerateId()
514514 if ($ this ->isSessionExists ()) {
515515 //regenerate the session
516516 session_regenerate_id ();
517- $ new_session_id = session_id ();
517+ $ newSessionId = session_id ();
518518
519- $ _SESSION ['new_session_id ' ] = $ new_session_id ;
519+ $ _SESSION ['new_session_id ' ] = $ newSessionId ;
520520
521521 // Set destroy timestamp
522522 $ _SESSION ['destroyed ' ] = time ();
523523
524524 // Write and close current session;
525525 session_commit ();
526- $ oldSession = $ _SESSION ; //called after destroy - see destroy!
526+
527+ //called after destroy()
528+ $ oldSession = $ _SESSION ;
527529 // Start session with new session ID
528- session_id ($ new_session_id );
530+ session_id ($ newSessionId );
529531 ini_set ('session.use_strict_mode ' , 0 );
530532 session_start ();
531533 ini_set ('session.use_strict_mode ' , 1 );
You can’t perform that action at this time.
0 commit comments