I am having problems creating a cookie for a specific domain. What I'm trying to do is post a form to a different site and then grab the response from that site. However while doing this they require a cookie to keep track of the posted form information through a redirect they do. I can handle the redirect if I can just figure out how to set the domain for the cookie to their domain.
I've tried:
setcookie("name","value",$lifetime,"www.domain.com");
but when the cookie is actually created it creates it as myhostwww.domain.com rather than www.domain.com.
Any help would be appreciated. Thanks. -andy