Use common function to mark the user session as not logged in

release-0.6
thomascube 17 years ago
parent 6aed0849ce
commit b9183e5fd4

@ -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();

Loading…
Cancel
Save