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()
511
511
if ($ this ->isSessionExists ()) {
512
512
//regenerate the session
513
513
session_regenerate_id ();
514
- $ new_session_id = session_id ();
514
+ $ newSessionId = session_id ();
515
515
516
- $ _SESSION ['new_session_id ' ] = $ new_session_id ;
516
+ $ _SESSION ['new_session_id ' ] = $ newSessionId ;
517
517
518
518
// Set destroy timestamp
519
519
$ _SESSION ['destroyed ' ] = time ();
520
520
521
521
// Write and close current session;
522
522
session_commit ();
523
- $ oldSession = $ _SESSION ; //called after destroy - see destroy!
523
+
524
+ //called after destroy()
525
+ $ oldSession = $ _SESSION ;
524
526
// Start session with new session ID
525
- session_id ($ new_session_id );
527
+ session_id ($ newSessionId );
526
528
ini_set ('session.use_strict_mode ' , 0 );
527
529
session_start ();
528
530
ini_set ('session.use_strict_mode ' , 1 );
You can’t perform that action at this time.
0 commit comments