- 🇭🇺Hungary fox mulder
@anuj423: where did you place this code in AutologoutManager.php exactly?
- 🇭🇺Hungary fox mulder
I found:
autologout/src/AutologoutManager.phppublic function logout() { $user = $this->currentUser; if ($this->autoLogoutSettings->get('use_watchdog')) { $this->logger->info( 'Session automatically closed for %name by autologout.', ['%name' => $user->getAccountName()] ); } // Destroy the current session. if (!array_key_exists('HTTP_USER_AGENT', $_SESSION)) { $_SESSION['HTTP_USER_AGENT'] = $_SERVER['HTTP_USER_AGENT']; } if ($_SESSION['HTTP_USER_AGENT'] != $_SERVER['HTTP_USER_AGENT']) { $this->moduleHandler->invokeAll('user_logout', [$user]); $this->session->destroy(); $user->setAccount(new AnonymousUserSession()); } }