diff options
author | alecpl <alec@alec.pl> | 2009-05-13 07:17:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-13 07:17:33 +0000 |
commit | 27924acf437df92c4e6e88e79bd28a58e6ea4aaa (patch) | |
tree | dd1c2d11e95658bd92fa80f27188d950a630c55b /program/include/rcmail.php | |
parent | 1c5be6f792510c842370a2869603c6ec7ae9a29e (diff) |
- speed up the whole session cleaning in kill_session()
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 1443617c4..6ed095062 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -793,8 +793,7 @@ class rcmail */ public function kill_session() { - foreach (array_keys($_SESSION) as $var) - rcube_sess_unset($var); + rcube_sess_unset(); $_SESSION = array('language' => $this->user->language, 'auth_time' => time(), 'temp' => true); rcmail::setcookie('sessauth', '-del-', time() - 60); $this->user->reset(); |