Skip to content

Commit

Permalink
jhedstrom#446 Check for session first before logging out in fastLogou…
Browse files Browse the repository at this point in the history
…t method of DrupalAuthenticationManager
  • Loading branch information
m4olivei committed Dec 13, 2017
1 parent 2eb9232 commit 606dd7f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ public function loggedIn()
*/
public function fastLogout()
{
$this->getSession()->reset();
$this->userManager->setCurrentUser(false);
$session = $this->getSession();
if ($session->isStarted()) {
$session->reset();
$this->userManager->setCurrentUser(FALSE);
}
}
}

0 comments on commit 606dd7f

Please sign in to comment.