Merge pull request #11756 from nextcloud/ignore-session-lifetime-if-it-can-not-be-converted-to-a-number
Ignore "session_lifetime" if it can not be converted to a number
This commit is contained in:
commit
fa15c5e636
1 changed files with 3 additions and 1 deletions
|
@ -1383,10 +1383,12 @@ function initCore() {
|
|||
*/
|
||||
function initSessionHeartBeat() {
|
||||
// interval in seconds
|
||||
var interval = 900;
|
||||
var interval = NaN;
|
||||
if (oc_config.session_lifetime) {
|
||||
interval = Math.floor(oc_config.session_lifetime / 2);
|
||||
}
|
||||
interval = isNaN(interval)? 900: interval;
|
||||
|
||||
// minimum one minute
|
||||
interval = Math.max(60, interval);
|
||||
// max interval in seconds set to 24 hours
|
||||
|
|
Loading…
Reference in a new issue