bakedbean Posted July 24, 2008 Share Posted July 24, 2008 I am setting a fairly standard cookie, but I need it to be available across subdomains. So as shown in the docs, I set the domain as ".domain.com". In Firefox and Safari, this works fine, the cookie is available across all sub domains. But in IE (6 and 7) the cookie isn't seen on any subdomains. I've modified the IE privacy settings to allow 3rd party cookies, and loosened the security settings, but no luck... anyone else experienced something like this? I have to think there's still some weird setting in IE that needs to be changed to allow this...? My code: setcookie("the_name","the_value",time()+4000,"/",".domain.com"); I have verified that the cookie is getting set, but only on http://domain.com, once I switch to a subdomain like "sub.domain.com" the cookie isn't there. Any advice is appreciated. Link to comment https://forums.phpfreaks.com/topic/116461-trouble-with-subdomain-cookies-and-ie/ Share on other sites More sharing options...
dezkit Posted July 24, 2008 Share Posted July 24, 2008 change setcookie("the_name","the_value",time()+4000,"/",".domain.com"); to setcookie("the_name","the_value",time()+4000,"/","*.domain.com"); Link to comment https://forums.phpfreaks.com/topic/116461-trouble-with-subdomain-cookies-and-ie/#findComment-598865 Share on other sites More sharing options...
bakedbean Posted July 24, 2008 Author Share Posted July 24, 2008 tried that, and no change, cookie is still not showing up under subdomains Link to comment https://forums.phpfreaks.com/topic/116461-trouble-with-subdomain-cookies-and-ie/#findComment-598869 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.