Add debug log for session invalidation
This commit is contained in:
@@ -68,9 +68,10 @@ class AuthenticationManager extends Base
|
|||||||
*/
|
*/
|
||||||
public function checkCurrentSession()
|
public function checkCurrentSession()
|
||||||
{
|
{
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user