diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-04 13:56:10 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-04 13:56:10 +0100 |
commit | 912da8d27756d9f0d55821338f6d8698af2dbd27 (patch) | |
tree | dac95a4673a5d523366b9478c27887d16571f0a4 /core/js/config.php | |
parent | 49f0f9f2f67c3494628f14c7a5c383596879ec12 (diff) | |
download | nextcloud-server-912da8d27756d9f0d55821338f6d8698af2dbd27.tar.gz nextcloud-server-912da8d27756d9f0d55821338f6d8698af2dbd27.zip |
Added session_keepalive setting
When session_keepalive is true (default) the heartbeat will be send as
often as the half of the session timeout value.
Diffstat (limited to 'core/js/config.php')
-rw-r--r-- | core/js/config.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/config.php b/core/js/config.php index dd46f7889d1..517ea1615a8 100644 --- a/core/js/config.php +++ b/core/js/config.php @@ -55,6 +55,12 @@ $array = array( ) ), "firstDay" => json_encode($l->l('firstday', 'firstday')) , + "oc_config" => json_encode( + array( + 'session_lifetime' => \OCP\Config::getSystemValue('session_lifetime', 60 * 60 * 24), + 'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true) + ) + ) ); // Echo it |