- LSsession : Ajout d'un paramètrage global pour 'keepLSsessionActive'.

This commit is contained in:
Benjamin Renard 2009-02-21 11:42:26 +00:00
parent 16df350e74
commit b66f3a2de2
2 changed files with 14 additions and 1 deletions

View file

@ -28,6 +28,7 @@ $GLOBALS['LSconfig'] = array(
'cacheLSprofiles' => true, 'cacheLSprofiles' => true,
'cacheSubDn' => true, 'cacheSubDn' => true,
'cacheSearch' => true, 'cacheSearch' => true,
'keepLSsessionActive' => true,
'ldap_servers' => array ( 'ldap_servers' => array (
array ( array (
'name' => 'LSexample', 'name' => 'LSexample',

View file

@ -1008,7 +1008,19 @@ class LSsession {
$JSscript_txt.="<script src='".$script['path'].$script['file']."' type='text/javascript'></script>\n"; $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')); self :: addJSconfigParam('keepLSsessionActive',ini_get('session.gc_maxlifetime'));
} }