From 70be645779b214f73337fa8a3e6ef5d7debd53a4 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 19 Jan 2009 08:38:14 +0000 Subject: - Fix authentication when submitting form with existing session (#1485679) git-svn-id: https://svn.roundcube.net/trunk@2242 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/index.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roundcubemail/index.php') diff --git a/roundcubemail/index.php b/roundcubemail/index.php index d57c91ea9..172d57c88 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -72,6 +72,10 @@ if ($RCMAIL->action=='error' && !empty($_GET['_code'])) { // try to log in if ($RCMAIL->action=='login' && $RCMAIL->task=='mail') { + // purge the session in case of new login when a session already exists + $RCMAIL->kill_session(); + + // set IMAP host $host = $RCMAIL->autoselect_host(); // check if client supports cookies -- cgit v1.2.3