summaryrefslogtreecommitdiff
path: root/app/Core/Security/AuthenticationManager.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-06 08:23:53 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-06 08:23:53 -0500
commitd0e809a32cd58c0d89b2425aeb245e04a94df7d6 (patch)
tree154070c7b7a99ca47ef21702d5c9498bfb920a16 /app/Core/Security/AuthenticationManager.php
parent9bd7985ba41b385c63213970b862ffc06f1096b0 (diff)
Add new method to flush session variables
Diffstat (limited to 'app/Core/Security/AuthenticationManager.php')
-rw-r--r--app/Core/Security/AuthenticationManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Core/Security/AuthenticationManager.php b/app/Core/Security/AuthenticationManager.php
index dbc41b09..8e5f76be 100644
--- a/app/Core/Security/AuthenticationManager.php
+++ b/app/Core/Security/AuthenticationManager.php
@@ -71,7 +71,7 @@ class AuthenticationManager extends Base
if ($this->userSession->isLogged() ) {
foreach ($this->filterProviders('SessionCheckProviderInterface') as $provider) {
if (! $provider->isValidSession()) {
- unset($this->sessionStorage->user);
+ $this->sessionStorage->flush();
$this->preAuthentication();
return false;
}