diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-27 15:44:00 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-02-27 15:44:00 +0100 |
commit | 888e4f21d25d9608cee9507d669637946755bb57 (patch) | |
tree | 013b84db660110f546bc1e815328b477d1bb831f /lib/base.php | |
parent | 3a7322342e602950ad53ba352e0f75193aebb265 (diff) | |
download | nextcloud-server-888e4f21d25d9608cee9507d669637946755bb57.tar.gz nextcloud-server-888e4f21d25d9608cee9507d669637946755bb57.zip |
timeout after a longer time
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php index 8d6dec78ea6..0e751c0f0ec 100644 --- a/lib/base.php +++ b/lib/base.php @@ -340,13 +340,13 @@ class OC { // regenerate session id periodically to avoid session fixation if (!isset($_SESSION['SID_CREATED'])) { $_SESSION['SID_CREATED'] = time(); - } else if (time() - $_SESSION['SID_CREATED'] > 900) { + } else if (time() - $_SESSION['SID_CREATED'] > 60*60*12) { session_regenerate_id(true); $_SESSION['SID_CREATED'] = time(); } // session timeout - if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 3600)) { + if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 60*60*24)) { if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time() - 42000, '/'); } |