From 8f6c064cd7652635751c91283f6b35f652f52885 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 6 Dec 2015 14:55:45 -0500 Subject: Add debug log for session invalidation --- app/Core/Security/AuthenticationManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Core/Security/AuthenticationManager.php b/app/Core/Security/AuthenticationManager.php index 8e5f76be..b1ba76cf 100644 --- a/app/Core/Security/AuthenticationManager.php +++ b/app/Core/Security/AuthenticationManager.php @@ -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; -- cgit v1.2.3