mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
- LSsession : Ajout d'un paramètrage global pour 'keepLSsessionActive'.
This commit is contained in:
parent
16df350e74
commit
b66f3a2de2
2 changed files with 14 additions and 1 deletions
|
@ -28,6 +28,7 @@ $GLOBALS['LSconfig'] = array(
|
|||
'cacheLSprofiles' => true,
|
||||
'cacheSubDn' => true,
|
||||
'cacheSearch' => true,
|
||||
'keepLSsessionActive' => true,
|
||||
'ldap_servers' => array (
|
||||
array (
|
||||
'name' => 'LSexample',
|
||||
|
|
|
@ -1008,7 +1008,19 @@ class LSsession {
|
|||
$JSscript_txt.="<script src='".$script['path'].$script['file']."' type='text/javascript'></script>\n";
|
||||
}
|
||||
|
||||
if (!isset(self :: $ldapServer['keepLSsessionActive']) || (self :: $ldapServer['keepLSsessionActive'])) {
|
||||
if (
|
||||
(
|
||||
(!isset(self :: $ldapServer['keepLSsessionActive']))
|
||||
&&
|
||||
(
|
||||
(!isset($GLOBALS['LSconfig']['keepLSsessionActive']))
|
||||
||
|
||||
($GLOBALS['LSconfig']['keepLSsessionActive'])
|
||||
)
|
||||
)
|
||||
||
|
||||
(self :: $ldapServer['keepLSsessionActive'])
|
||||
) {
|
||||
self :: addJSconfigParam('keepLSsessionActive',ini_get('session.gc_maxlifetime'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue