Hello.
I just transfered my domain name to a new web hosting. I changed the DNS settings yesterday morning (about 24 hours ago).
Right now I am having to use the IP address for the new hosting because the domain name has not yet propagated from the previous hosting.
Yesterday on the new hosting I was using the IP address for the setcookie() function. It was working pretty good but sometimes the setcookie() function would not set or install the cookie yesterday.
Today, the setcookie() function will not install a cookie at all using the IP address or the domain name.
// this was working yesterday but not today.
setcookie("CookName", $Value, time()+31536000, "/", "199.61.62.53", 0);
// using the domain name won't work either.
setcookie("CookName", $Value, time()+31536000, "/", ".mydomain.com", 0);
The phpMyAdmin program uses the IP address to set cookies with on the new hosting so it looks like the IP address ought to work with the setcookie() function.
My question is: Am I just not doing something right or will the IP address not work very well with the setcookie() function?