Jump to content

Archived

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

abarton

setcookie outside domains

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.)

Share this post


Link to post
Share on other sites
[quote]Is this possible?[/quote]

No.

Share this post


Link to post
Share on other sites

×

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.