summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_session.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-09 13:40:23 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-11-09 13:40:23 +0000
commit77aa861396f15e02c2dee4d23991bba1547e3664 (patch)
tree7fc2029fe2a9a4b5b7e7d190424b9f64dc931610 /roundcubemail/program/include/rcube_session.php
parent4d4180e13b0620f3713ca1d672b3cc256b4097fa (diff)
Consider replication delays in session storage
git-svn-id: https://svn.roundcube.net/trunk@5403 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_session.php')
-rw-r--r--roundcubemail/program/include/rcube_session.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_session.php b/roundcubemail/program/include/rcube_session.php
index e8bd9d06c..22aa55016 100644
--- a/roundcubemail/program/include/rcube_session.php
+++ b/roundcubemail/program/include/rcube_session.php
@@ -394,6 +394,18 @@ class rcube_session
/**
+ * Re-read session data from storage backend
+ */
+ public function reload()
+ {
+ if ($this->key && $this->memcache)
+ $this->mc_read($this->key);
+ else if ($this->key)
+ $this->db_read($this->key);
+ }
+
+
+ /**
* Serialize session data
*/
private function serialize($vars)