abarton Posted October 30, 2006 Share Posted October 30, 2006 I am trying to set a cookie for a domain that is not the current one but am unable to.Ie: on www.test.com I run the following[code]setcookie( 'gender', 'female', time+60*60, "/", ".blah.com" );[/code]The cookie will not set. However if I change the domain on the cookie to test.com it will work. Is this possible? Any ideas?(I test by inspecting my cookies in Firefox as PHP will not be able to reference cookies outside the current domain.) Link to comment https://forums.phpfreaks.com/topic/25597-setcookie-outside-domains/ Share on other sites More sharing options...
trq Posted October 30, 2006 Share Posted October 30, 2006 [quote]Is this possible?[/quote]No. Link to comment https://forums.phpfreaks.com/topic/25597-setcookie-outside-domains/#findComment-116832 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.