From 56216eacd7944954c74f58c2694d8d1b6b36f9de Mon Sep 17 00:00:00 2001 From: seek3r Date: Sun, 3 Sep 2000 09:19:16 +0000 Subject: [PATCH] re-built the sessions class, and other connected classes, along with proper cookies support --- login.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/login.php b/login.php index d62483ee8a..5b0aa39457 100755 --- a/login.php +++ b/login.php @@ -45,11 +45,11 @@ function show_cookie() { global $phpgw_info, $code, $lastloginid, $login; - if ($code != 5){ - if ($phpgw_info["server"]["usecookies"]) { + if ($code != 5 && $phpgw_info["server"]["usecookies"] == True){ + if (!empty($login)) { SetCookie("lastloginid",$login, time() + (24 * 3600 * 14),"/"); - return $lastloginid; } + return $lastloginid; } }