I need to set two variables for a login script, in a cookie at the client side.
Problem is, that our website uses, two different domains... That cookie has to be accessible at both domains.
What I am trying to do now, is to set two cookies, after a successful login.
One for each domain...
Question:
Can I name the vars in the two cookies with the same name??
I can`t seem to set the cookie for both domains, it only set(tle)s with the "active" domain, where the registration process is taking place.....
setcookie("cookie_name", $var,0,"",".mydomain.com") ;
Is this the right way to set the cookie for mydomain.com?
please help :=)
-trond-