Bug 481313 - "Give aus2 users a unique cookie" (Fix cookie name) [p=oremj r=reed]

git-svn-id: svn://10.0.0.236/trunk@257589 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2009-06-26 06:56:34 +00:00
parent 0f0dfe86ae
commit 1aedc330c3

View File

@ -62,7 +62,7 @@ if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
//We need to give the user a unique cookie and make it expire in 5 years.
if (!array_key_exists('aus', $_COOKIE)) {
if (!array_key_exists(COOKIE_NAME, $_COOKIE)) {
setcookie(COOKIE_NAME, $ip . '.' . microtime(true), time() + 157784630, '/', COOKIE_DOMAIN);
}