From d0e809a32cd58c0d89b2425aeb245e04a94df7d6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 6 Dec 2015 08:23:53 -0500 Subject: Add new method to flush session variables --- app/Core/Security/AuthenticationManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Core/Security/AuthenticationManager.php') 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; } -- cgit v1.2.3