add_script("window.location.href='{$sUrl}pages/logoff.php?portal=$bPortal'"); $oPage->output(); exit; } if (isset($_SESSION['auth_user'])) { $sAuthUser = $_SESSION['auth_user']; UserRights::Login($sAuthUser); // Set the user's language } LoginWebPage::ResetSession(); $bLoginDebug = MetaModel::GetConfig()->Get('login_debug'); if ($bLoginDebug) { IssueLog::Info("---------------------------------"); if (isset($sAuthUser)) { IssueLog::Info("--> Logout user: [$sAuthUser]"); } else { IssueLog::Info("--> Logout"); } $sSessionLog = session_id().' '.utils::GetSessionLog(); IssueLog::Info("SESSION: $sSessionLog"); } $aPluginList = LoginWebPage::GetLoginPluginList('iLogoutExtension'); /** @var iLogoutExtension $oLogoutExtension */ foreach ($aPluginList as $oLogoutExtension) { if ($bLoginDebug) { $sCurrSessionLog = session_id().' '.utils::GetSessionLog(); if ($sCurrSessionLog != $sSessionLog) { $sSessionLog = $sCurrSessionLog; IssueLog::Info("SESSION: $sSessionLog"); } IssueLog::Info("Logout call: ".get_class($oLogoutExtension)); } $oLogoutExtension->LogoutAction(); } if ($bLoginDebug) { $sCurrSessionLog = session_id().' '.utils::GetSessionLog(); if ($sCurrSessionLog != $sSessionLog) { $sSessionLog = $sCurrSessionLog; IssueLog::Info("SESSION: $sSessionLog"); } IssueLog::Info("--> Display logout page"); } LoginWebPage::ResetSession(true); if ($bLoginDebug) { $sSessionLog = session_id().' '.utils::GetSessionLog(); IssueLog::Info("SESSION: $sSessionLog"); } $oPage = LoginWebPage::NewLoginWebPage(); $oPage->DisplayLogoutPage($bPortal);