Browse Source

restored workaround for pre 4.3 php session restart issue

tokul 19 years ago
parent
commit
b8ba775d19
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/login.php

+ 3 - 4
src/login.php

@@ -36,16 +36,15 @@ set_up_language($squirrelmail_language, TRUE, TRUE);
  * we get a new one.
  * we get a new one.
  */
  */
 sqsession_destroy();
 sqsession_destroy();
-sqsession_is_active();
-$_SESSION=array();
-
-
 /**
 /**
  * PHP bug. http://bugs.php.net/11643 (warning, spammed bug tracker) and
  * PHP bug. http://bugs.php.net/11643 (warning, spammed bug tracker) and
  * http://bugs.php.net/13834
  * http://bugs.php.net/13834
  * SID constant is not destroyed in PHP 4.1.2, 4.2.3 and maybe other
  * SID constant is not destroyed in PHP 4.1.2, 4.2.3 and maybe other
  * versions. Produces warning on login page. Bug should be fixed only in 4.3.0
  * versions. Produces warning on login page. Bug should be fixed only in 4.3.0
  */
  */
+@sqsession_is_active();
+$_SESSION=array();
+
 
 
 /**
 /**
  * This detects if the IMAP server has logins disabled, and if so,
  * This detects if the IMAP server has logins disabled, and if so,