forked from extern/egroupware
Fixed the big cookie bug
This commit is contained in:
parent
862bdd667b
commit
3c55f988ae
@ -47,10 +47,7 @@
|
|||||||
global $phpgw_info, $code, $lastloginid, $login;
|
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 */
|
/* 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 ($code != 5 && (isset($phpgw_info["server"]["usecookies"]) && $phpgw_info["server"]["usecookies"])){
|
||||||
if (!empty($login)) {
|
return $lastloginid;
|
||||||
SetCookie("lastloginid",$login, time() + (24 * 3600 * 14),"/");
|
|
||||||
}
|
|
||||||
return $lastloginid;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
}
|
}
|
||||||
Setcookie("sessionid");
|
Setcookie("sessionid");
|
||||||
Setcookie("kp3");
|
Setcookie("kp3");
|
||||||
|
Setcookie("domain");
|
||||||
|
|
||||||
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=1");
|
Header("Location: " . $phpgw_info["server"]["webserver_url"] . "/login.php?cd=1");
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user