Skip to content

Commit

Permalink
Merge pull request #1146 from pathmissing/patch-session-fixation
Browse files Browse the repository at this point in the history
Retrieve session manager via current request
  • Loading branch information
wagnert committed Jan 15, 2020
2 parents acaf61a + 1b88c98 commit b4c96e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function renewId()
$this->setId(SessionUtils::generateRandomString());

// load the session manager
$sessionManager = $this->getContext()->search(SessionManagerInterface::IDENTIFIER);
$sessionManager = $this->getRequest()->getSessionManager();

// attach this session with the new ID
$sessionManager->attach($this->getSession());
Expand Down

0 comments on commit b4c96e5

Please sign in to comment.