summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-07-23 11:12:44 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-07-23 11:12:44 +0200
commit1a8cf64dd1e70e387731ce70c006f29beecaebcc (patch)
tree4484945d314dd421817f7f856c6b29cff3671717 /program
parenta7fa90f3d3149f9aae9f2143f1aabe65a1c004a0 (diff)
Avoid session timeouts with memcache backend as proposed by D. Carter via users mailing list
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_session.php b/program/lib/Roundcube/rcube_session.php
index 646933b71..67072df41 100644
--- a/program/lib/Roundcube/rcube_session.php
+++ b/program/lib/Roundcube/rcube_session.php
@@ -333,9 +333,9 @@ class rcube_session
$newvars = $oldvars !== null ? $this->_fixvars($vars, $oldvars) : $vars;
- if ($newvars !== $oldvars || $ts - $this->changed > $this->lifetime / 2) {
+ if ($newvars !== $oldvars || $ts - $this->changed > $this->lifetime / 3) {
return $this->memcache->set($key, serialize(array('changed' => time(), 'ip' => $this->ip, 'vars' => $newvars)),
- MEMCACHE_COMPRESSED, $this->lifetime);
+ MEMCACHE_COMPRESSED, $this->lifetime + 60);
}
return true;