From b9183e5fd4ae3c54aad3e55675dc0275ac14fe38 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 16 Oct 2007 05:14:33 -0400
Subject: [PATCH] Use common function to mark the user session as not logged in
---
index.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/index.php b/index.php
index 199f494..aa163c1 100644
--- a/index.php
+++ b/index.php
@@ -173,7 +173,7 @@
else
{
$OUTPUT->show_message("loginfailed", 'warning');
- $_SESSION['user_id'] = '';
+ rcmail_kill_session();
}
}
@@ -202,7 +202,7 @@
if (!$conn)
{
$OUTPUT->show_message('imaperror', 'error');
- $_SESSION['user_id'] = '';
+ rcmail_kill_session();
}
else
rcmail_set_imap_prop();
--
Gitblit v1.9.1