Include SAML in pandora standard session handler (php)

This commit is contained in:
fbsanchez 2020-10-14 10:31:46 +02:00
parent 5b1d29e4cb
commit b97e8697f9
1 changed files with 8 additions and 11 deletions

View File

@ -198,14 +198,11 @@ function pandora_session_gc($max_lifetime=300)
}
// TODO: SAML should work with pandora session handlers.
if (db_get_value('value', 'tconfig', 'token', 'auth') != 'saml') {
$result_handler = session_set_save_handler(
'pandora_session_open',
'pandora_session_close',
'pandora_session_read',
'pandora_session_write',
'pandora_session_destroy',
'pandora_session_gc'
);
}
$result_handler = session_set_save_handler(
'pandora_session_open',
'pandora_session_close',
'pandora_session_read',
'pandora_session_write',
'pandora_session_destroy',
'pandora_session_gc'
);