Set cookies for multiple domains
Posted: Wed Nov 04, 2009 10:25 am
I've built a webportal on one of my subdomains, let's say M. I've got a bunch of other servers at a different domain, let's say C. When a user logs into M, is there any way for me to get the authentication cookie set on C? I know I can't call setcookie() on M & set a cookie on C.
I've set up a PHP file on C that is loaded as an image once the user logs in to M. That successfully propagates the cookie info in Firefox. IE8 though, refuses to co-operate (what a shock). If I access the PHP file on C directly, the cookie does propagate properly.
Checking the Developer Tools Image Report in IE, it says the propagating image is broken. That's fine - it would appear that the request for the file is still made though. Why then, is the cookie not propagating?
I've set up a PHP file on C that is loaded as an image once the user logs in to M. That successfully propagates the cookie info in Firefox. IE8 though, refuses to co-operate (what a shock). If I access the PHP file on C directly, the cookie does propagate properly.
Checking the Developer Tools Image Report in IE, it says the propagating image is broken. That's fine - it would appear that the request for the file is still made though. Why then, is the cookie not propagating?