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

@@ -68,9 +68,10 @@ class AuthenticationManager extends Base
*/
public function checkCurrentSession()
{
if ($this->userSession->isLogged() ) {
if ($this->userSession->isLogged()) {
foreach ($this->filterProviders('SessionCheckProviderInterface') as $provider) {
if (! $provider->isValidSession()) {
$this->logger->debug('Invalidate session for '.$this->userSession->getUsername());
$this->sessionStorage->flush();
$this->preAuthentication();
return false;