Skip to content

Commit

Permalink
Suppress code standard warning
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 ac42b70 commit 5b6e78e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/internal/Magento/Framework/Session/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Framework\Session;

use Magento\Framework\Session\Config\ConfigInterface;
Expand Down Expand Up @@ -509,7 +512,7 @@ public function regenerateId()
}

if ($this->isSessionExists()) {
//regenerate the session
// Regenerate the session
session_regenerate_id();
$newSessionId = session_id();

Expand All @@ -520,8 +523,7 @@ public function regenerateId()

// Write and close current session;
session_commit();

//called after destroy()
// Called after destroy()
$oldSession = $_SESSION;
// Start session with new session ID
session_id($newSessionId);
Expand Down

0 comments on commit 5b6e78e

Please sign in to comment.