Add new method to flush session variables

This commit is contained in:
Frederic Guillot
2015-12-06 08:23:53 -05:00
parent 9bd7985ba4
commit d0e809a32c
3 changed files with 38 additions and 1 deletions

View File

@@ -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;
}