summaryrefslogtreecommitdiff
path: root/program/lib
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:14:01 +0200
commit8b31b0b6b4a53dcba43479afd7320c604c653b95 (patch)
tree4e8dd77987ccb949cfa7e1eb78ede7c23c341efa /program/lib
parentfc5ce4758d58fc3f720e38f32d63b5336d40293d (diff)
Avoid session timeouts with memcache backend as proposed by D. Carter via users mailing list
Diffstat (limited to 'program/lib')
-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 dedde2284..ee4db6e86 100644
--- a/program/lib/Roundcube/rcube_session.php
+++ b/program/lib/Roundcube/rcube_session.php
@@ -310,9 +310,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;