DarkReaper
05-30-2002, 05:32 PM
I'm trying to get the cookies vB sets to apply to all 3 domains my website uses(so you could go to forums.anydomain.com and be logged in) but it's not working quite right. In /admin/functions.php I changed this:
if ($cookiedomain) {
setcookie($name, $value, $expire, $cookiepath, $cookiedomain, $secure);
} else {
setcookie($name, $value, $expire, $cookiepath, '', $secure);
}
To this:
setcookie($name, $value, $expire, $cookiepath, '.seriouscommunity.com', $secure);
setcookie($name, $value, $expire, $cookiepath, '.seriouszone.com', $secure);
setcookie($name, $value, $expire, $cookiepath, '.seriousengine.com', $secure);
It didn't work though. What am I doing wrong?
if ($cookiedomain) {
setcookie($name, $value, $expire, $cookiepath, $cookiedomain, $secure);
} else {
setcookie($name, $value, $expire, $cookiepath, '', $secure);
}
To this:
setcookie($name, $value, $expire, $cookiepath, '.seriouscommunity.com', $secure);
setcookie($name, $value, $expire, $cookiepath, '.seriouszone.com', $secure);
setcookie($name, $value, $expire, $cookiepath, '.seriousengine.com', $secure);
It didn't work though. What am I doing wrong?