mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
rc1
This commit is contained in:
parent
30c7da054f
commit
7b73a36eb0
@ -961,19 +961,23 @@ if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
|||||||
|
|
||||||
// Log off.
|
// Log off.
|
||||||
if (isset($_GET['bye'])) {
|
if (isset($_GET['bye'])) {
|
||||||
include 'general/logoff.php';
|
|
||||||
$iduser = $_SESSION['id_usuario'];
|
$iduser = $_SESSION['id_usuario'];
|
||||||
|
$samlid = $_SESSION['samlid'];
|
||||||
|
|
||||||
|
// Process logout.
|
||||||
|
include 'general/logoff.php';
|
||||||
|
|
||||||
|
if ($config['auth'] == 'saml' && empty($samlid) === false) {
|
||||||
|
include_once $config['saml_path'].'simplesamlphp/lib/_autoload.php';
|
||||||
|
enterprise_include('include/auth/saml.php');
|
||||||
|
enterprise_hook('saml_logout', [$samlid]);
|
||||||
|
}
|
||||||
|
|
||||||
$_SESSION = [];
|
$_SESSION = [];
|
||||||
session_destroy();
|
session_destroy();
|
||||||
header_remove('Set-Cookie');
|
header_remove('Set-Cookie');
|
||||||
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
|
setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/');
|
||||||
|
|
||||||
if ($config['auth'] == 'saml') {
|
|
||||||
include_once $config['saml_path'].'simplesamlphp/lib/_autoload.php';
|
|
||||||
saml_logout();
|
|
||||||
}
|
|
||||||
|
|
||||||
while (@ob_end_flush()) {
|
while (@ob_end_flush()) {
|
||||||
// Dumping...
|
// Dumping...
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user