Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-27 18:44:00 +0400
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-27 18:44:00 +0400
commit888e4f21d25d9608cee9507d669637946755bb57 (patch)
tree013b84db660110f546bc1e815328b477d1bb831f /lib/base.php
parent3a7322342e602950ad53ba352e0f75193aebb265 (diff)
timeout after a longer time
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
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, '/');
}