| | |
| | | |
| | | // 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; |
| | |
| | | // 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( |
| | |
| | | */ |
| | | 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(); |