Commit 54620202 authored by Kevin Atkinson's avatar Kevin Atkinson
Browse files

Since we changed the domain of the cookies make sure that the cookies

from the old domain no longer exist to avoid strange behavior.
parent dcbda2eb
......@@ -979,6 +979,16 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null, $adminon = 0)
# Issue the cookie requests so that subsequent pages come back
# with the hash value and auth usr embedded.
#
# Since we changed the domain of the cookies make sure that the cookies
# from the old domain no longer exist.
#
setcookie($TBAUTHCOOKIE, '', 1, "/", $TBAUTHDOMAIN, $TBSECURECOOKIES);
setcookie($TBLOGINCOOKIE, '', 1, "/", $TBAUTHDOMAIN, 0);
setcookie($TBNAMECOOKIE, '', 1, "/", $TBAUTHDOMAIN, 0);
if ($email)
setcookie($TBEMAILCOOKIE, '', 1, "/", $TBAUTHDOMAIN, 0);
#
# For the hashkey, we use a zero timeout so that the cookie is
# a session cookie; killed when the browser is exited. Hopefully this
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment