Changeset 5403 in subversion
- Timestamp:
- Nov 9, 2011 8:40:23 AM (19 months ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 2 edited
-
include/rcube_session.php (modified) (1 diff)
-
steps/mail/compose.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_session.php
r5247 r5403 391 391 $this->destroy(session_id()); 392 392 rcmail::setcookie($this->cookiename, '-del-', time() - 60); 393 } 394 395 396 /** 397 * Re-read session data from storage backend 398 */ 399 public function reload() 400 { 401 if ($this->key && $this->memcache) 402 $this->mc_read($this->key); 403 else if ($this->key) 404 $this->db_read($this->key); 393 405 } 394 406 -
trunk/roundcubemail/program/steps/mail/compose.inc
r5401 r5403 31 31 $COMPOSE_ID = get_input_value('_id', RCUBE_INPUT_GET); 32 32 $_SESSION['compose'] = $_SESSION['compose_data_'.$COMPOSE_ID]; 33 34 // give replicated session storage some time to synchronize 35 $retries = 0; 36 while ($COMPOSE_ID && !is_array($_SESSION['compose']) && $RCMAIL->db->is_replicated() && $retries++ < 5) { 37 usleep(500000); 38 $RCMAIL->session->reload(); 39 $_SESSION['compose'] = $_SESSION['compose_data_'.$COMPOSE_ID]; 40 } 33 41 34 42 // Nothing below is called during message composition, only at "new/forward/reply/draft" initialization or
Note: See TracChangeset
for help on using the changeset viewer.
