thomascube
2009-05-14 f879f4e2f8c81f67b0a0c471c94ebed686939c49
program/include/rcmail.php
@@ -124,7 +124,7 @@
    // reset some session parameters when changing task
    if ($_SESSION['task'] != $this->task)
      unset($_SESSION['page']);
      rcube_sess_unset('page');
    // set current task to session
    $_SESSION['task'] = $this->task;
@@ -491,6 +491,13 @@
        // get existing mailboxes (but why?)
        // $a_mailboxes = $this->imap->list_mailboxes();
      }
      else {
        raise_error(array(
          'code' => 600,
          'type' => 'php',
          'message' => "Failed to create a user record. Maybe aborted by a plugin?"
          ), true, false);
      }
    }
    else {
      raise_error(array(
@@ -793,6 +800,7 @@
   */
  public function kill_session()
  {
    rcube_sess_unset();
    $_SESSION = array('language' => $this->user->language, 'auth_time' => time(), 'temp' => true);
    rcmail::setcookie('sessauth', '-del-', time() - 60);
    $this->user->reset();