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.) Quote Link to comment Share on other sites More sharing options...
trq Posted October 30, 2006 Share Posted October 30, 2006 [quote]Is this possible?[/quote]No. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.