fixes SAML
This commit is contained in:
parent
ca9b167741
commit
30c7da054f
|
@ -236,9 +236,11 @@ function enable_session_handlers()
|
|||
/**
|
||||
* Disables custom session handlers.
|
||||
*
|
||||
* @param string|null $id_session Force swap to target session.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function disable_session_handlers()
|
||||
function disable_session_handlers($id_session=null)
|
||||
{
|
||||
global $config;
|
||||
|
||||
|
@ -250,6 +252,10 @@ function disable_session_handlers()
|
|||
$ss = new SessionHandler();
|
||||
session_set_save_handler($ss, true);
|
||||
|
||||
if ($id_session !== null) {
|
||||
session_id($id_session);
|
||||
}
|
||||
|
||||
session_start();
|
||||
|
||||
$config['_using_pandora_sessionhandlers'] = false;
|
||||
|
|
|
@ -411,8 +411,7 @@ if (! isset($config['id_user'])) {
|
|||
$nick_in_db = $saml_user_id;
|
||||
if (!$nick_in_db) {
|
||||
include_once $config['saml_path'].'simplesamlphp/lib/_autoload.php';
|
||||
$as = new SimpleSAML_Auth_Simple($config['saml_source']);
|
||||
$as->logout();
|
||||
saml_logout();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -972,8 +971,7 @@ if (isset($_GET['bye'])) {
|
|||
|
||||
if ($config['auth'] == 'saml') {
|
||||
include_once $config['saml_path'].'simplesamlphp/lib/_autoload.php';
|
||||
$as = new SimpleSAML_Auth_Simple($config['saml_source']);
|
||||
$as->logout();
|
||||
saml_logout();
|
||||
}
|
||||
|
||||
while (@ob_end_flush()) {
|
||||
|
|
Loading…
Reference in New Issue