Skip to content
Snippets Groups Projects
Commit 764e695c authored by Matthias Rieber's avatar Matthias Rieber Committed by Morris Jobke
Browse files

use the minimum of configured session_livetime and session.gc_maxlifetime for...

use the minimum of configured session_livetime and session.gc_maxlifetime for session hearbeat interval calculation
parent 1173a55d
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ $array = array( ...@@ -70,7 +70,7 @@ $array = array(
"firstDay" => json_encode($l->l('firstday', 'firstday')) , "firstDay" => json_encode($l->l('firstday', 'firstday')) ,
"oc_config" => json_encode( "oc_config" => json_encode(
array( array(
'session_lifetime' => \OCP\Config::getSystemValue('session_lifetime', ini_get('session.gc_maxlifetime')), 'session_lifetime' => min(\OCP\Config::getSystemValue('session_lifetime', ini_get('session.gc_maxlifetime')), ini_get('session.gc_maxlifetime')),
'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true), 'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true),
'version' => implode('.', OC_Util::getVersion()), 'version' => implode('.', OC_Util::getVersion()),
'versionstring' => OC_Util::getVersionString(), 'versionstring' => OC_Util::getVersionString(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment