From 814e501a066fc957a32f24f5667fad3995423749 Mon Sep 17 00:00:00 2001 From: gustavf Date: Tue, 22 May 2001 08:03:33 +0000 Subject: [PATCH] Changed $username from cookie to session variable. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1398 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/redirect.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/redirect.php b/src/redirect.php index c9ace436..22fd737c 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -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 "\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'); } -- 2.25.1