Jump to content

setcookie outside domains


abarton

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.