mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
Fixed the big cookie bug
This commit is contained in:
parent
862bdd667b
commit
3c55f988ae
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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