Avoid session timeouts with memcache backend as proposed by D. Carter via users mailing list

pull/117/head
Thomas Bruederli 12 years ago
parent fc5ce4758d
commit 8b31b0b6b4

@ -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;

Loading…
Cancel
Save