Fixed the big cookie bug

This commit is contained in:
jengo 2000-11-23 09:04:10 +00:00
parent 862bdd667b
commit 3c55f988ae
2 changed files with 2 additions and 4 deletions

View File

@ -47,10 +47,7 @@
global $phpgw_info, $code, $lastloginid, $login;
/* This needs to be this way, because if someone doesnt want to use cookies, we shouldnt sneak one in */
if ($code != 5 && (isset($phpgw_info["server"]["usecookies"]) && $phpgw_info["server"]["usecookies"])){
if (!empty($login)) {
SetCookie("lastloginid",$login, time() + (24 * 3600 * 14),"/");
}
return $lastloginid;
return $lastloginid;
}
}

View File

@ -58,6 +58,7 @@
}
Setcookie("sessionid");
Setcookie("kp3");
Setcookie("domain");
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=1");
?>