summaryrefslogtreecommitdiff
path: root/program/include/rcube_session.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-03-10 20:21:21 +0000
committerthomascube <thomas@roundcube.net>2011-03-10 20:21:21 +0000
commit4591de7018414267311b421ef42ef1b4a2f6aa89 (patch)
tree1c5c723c52a626b0ebafe379ddf7fe6382b064bb /program/include/rcube_session.php
parent8381ec1254f816bea2a5e85acb0a54722d327a60 (diff)
Prepare for multiple concurrent compose windows
Diffstat (limited to 'program/include/rcube_session.php')
-rw-r--r--program/include/rcube_session.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/program/include/rcube_session.php b/program/include/rcube_session.php
index 1fa331753..8c7adb3f1 100644
--- a/program/include/rcube_session.php
+++ b/program/include/rcube_session.php
@@ -192,6 +192,19 @@ class rcube_session
/**
+ * Cleanup session data before saving
+ */
+ public function cleanup()
+ {
+ // current compose information is stored in $_SESSION['compose'], move it to $_SESSION['compose_data']
+ if ($_SESSION['compose']) {
+ $_SESSION['compose_data'][$_SESSION['compose']['id']] = $_SESSION['compose'];
+ $this->remove('compose');
+ }
+ }
+
+
+ /**
* Register additional garbage collector functions
*
* @param mixed Callback function