mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Fixed the big cookie bug
This commit is contained in:
parent
862bdd667b
commit
3c55f988ae
@ -47,9 +47,6 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -58,6 +58,7 @@
|
||||
}
|
||||
Setcookie("sessionid");
|
||||
Setcookie("kp3");
|
||||
Setcookie("domain");
|
||||
|
||||
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=1");
|
||||
?>
|
Loading…
Reference in New Issue
Block a user