Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Setting Cookie on redirected domain


phpmaven - 9:10 pm on May 21, 2010 (gmt 0)


I just spent a few minutes with a HTTP header checker and the problem is that the domain specified in the setcookie function is just ignored. It sets the cookie in the original domain regardless of whether you specify a domain in the function or not. It could very well be a function of the fact that I'm doing a 301 redirect. If I check out the 301 header, I can see that it's setting a cookie in the original domain.


Thread source:: http://www.webmasterworld.com/php/4136255.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com