Changed $username from cookie to session variable.
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 22 May 2001 08:03:33 +0000 (08:03 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 22 May 2001 08:03:33 +0000 (08:03 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1398 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/redirect.php

index c9ace436b789f0ab2edcebb0767c38c4214b5fda..22fd737cb6f3fe82055afee73c03471f22bd6f5c 100644 (file)
@@ -66,6 +66,7 @@
       // verify that username and password are correct
       if ($force_username_lowercase)
           $login_username = strtolower($login_username);
+
       $imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0);
          if (!$imapConnection) {
              echo "<html><body bgcolor=\"ffffff\">\n";
@@ -79,7 +80,8 @@
          }
       sqimap_logout($imapConnection);
 
-      setcookie('username', $login_username, 0, $base_uri);
+      $username = $login_username;
+      session_register ('username');
       setcookie('key', $key, 0, $base_uri);
       do_hook ('login_verified');
    }