minor fixes
This commit is contained in:
parent
d7f3810bba
commit
8b4fd551d1
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue