Add debug log for session invalidation

This commit is contained in:
Frederic Guillot
2015-12-06 14:55:45 -05:00
parent 70c65268fe
commit 8f6c064cd7

View File

@@ -71,6 +71,7 @@ class AuthenticationManager extends Base
if ($this->userSession->isLogged()) { if ($this->userSession->isLogged()) {
foreach ($this->filterProviders('SessionCheckProviderInterface') as $provider) { foreach ($this->filterProviders('SessionCheckProviderInterface') as $provider) {
if (! $provider->isValidSession()) { if (! $provider->isValidSession()) {
$this->logger->debug('Invalidate session for '.$this->userSession->getUsername());
$this->sessionStorage->flush(); $this->sessionStorage->flush();
$this->preAuthentication(); $this->preAuthentication();
return false; return false;