BUG 11037 Hook for session time setting SOLVED

- A hook is needed for a plugin to configure the session timeout.
- Added hook for session of the time setting & Added setting of the Maximum lifetime cleaned up in the System option.
This commit is contained in:
Hector Cortez
2013-03-25 09:52:47 -04:00
parent 1741af5292
commit c0d0fea10d
4 changed files with 36 additions and 4 deletions

View File

@@ -86,6 +86,13 @@ class adminProxy extends HttpProxyController
$updatedConf['proxy_pass'] = G::encrypt($httpData->proxy_pass, 'proxy_pass');
}
$sessionGcMaxlifetime = ini_get('session.gc_maxlifetime');
if (($httpData->max_life_time != "") && ($sessionGcMaxlifetime != $httpData->max_life_time)) {
if (!isset($sysConf['session.gc_maxlifetime']) || ($sysConf['session.gc_maxlifetime'] != $httpData->max_life_time)) {
$updatedConf['session.gc_maxlifetime'] = $httpData->max_life_time;
}
}
if ($updateRedirector) {
if (!file_exists(PATH_HTML . 'index.html')) {
throw new Exception('The index.html file is not writable on workflow/public_html directory.');