minor fixes

This commit is contained in:
fbsanchez 2020-10-19 19:17:07 +02:00
parent d7f3810bba
commit 8b4fd551d1
1 changed files with 4 additions and 7 deletions

View File

@ -981,13 +981,10 @@ if (isset($_GET['bye'])) {
enterprise_hook('saml_logout');
}
if (session_status() !== PHP_SESSION_NONE) {
$_SESSION = [];
session_destroy();
header_remove('Set-Cookie');
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
}
$_SESSION = [];
session_destroy();
header_remove('Set-Cookie');
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
// Process logout.
include 'general/logoff.php';