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 @@ -511,18 +511,20 @@ public function regenerateId()
511511 if ($ this ->isSessionExists ()) {
512512 //regenerate the session
513513 session_regenerate_id ();
514- $ new_session_id = session_id ();
514+ $ newSessionId = session_id ();
515515
516- $ _SESSION ['new_session_id ' ] = $ new_session_id ;
516+ $ _SESSION ['new_session_id ' ] = $ newSessionId ;
517517
518518 // Set destroy timestamp
519519 $ _SESSION ['destroyed ' ] = time ();
520520
521521 // Write and close current session;
522522 session_commit ();
523- $ oldSession = $ _SESSION ; //called after destroy - see destroy!
523+
524+ //called after destroy()
525+ $ oldSession = $ _SESSION ;
524526 // Start session with new session ID
525- session_id ($ new_session_id );
527+ session_id ($ newSessionId );
526528 ini_set ('session.use_strict_mode ' , 0 );
527529 session_start ();
528530 ini_set ('session.use_strict_mode ' , 1 );
You can’t perform that action at this time.
0 commit comments