summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-10-16 09:14:33 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-10-16 09:14:33 +0000
commita239012c6f9ec45cfd8cb2851511148489202067 (patch)
tree71f8b673f452adbbbce005f2ad7b067b26875aca
parente6c21c87303030040f5554dd90763107d49dc19b (diff)
Use common function to mark the user session as not logged in
git-svn-id: https://svn.roundcube.net/trunk@871 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php
index 199f49444..aa163c1f0 100644
--- a/roundcubemail/index.php
+++ b/roundcubemail/index.php
@@ -173,7 +173,7 @@ if ($_action=='login' && $_task=='mail')
else
{
$OUTPUT->show_message("loginfailed", 'warning');
- $_SESSION['user_id'] = '';
+ rcmail_kill_session();
}
}
@@ -202,7 +202,7 @@ if (!empty($_SESSION['user_id']) && $_task=='mail')
if (!$conn)
{
$OUTPUT->show_message('imaperror', 'error');
- $_SESSION['user_id'] = '';
+ rcmail_kill_session();
}
else
rcmail_set_imap_prop();