View Full Version : Cookies
Hotte
Thu 8th Feb '01, 1:32pm
Hi
How can I set Cookies for other Domains than that domain, who is trying to set it?
Example: Setting a cookie on domain www.abc.de for doman www.def.de
etones
Thu 8th Feb '01, 3:04pm
you cant do this. Simple as that.
Only the doamin where the cookie is written to can access that cookie,
If not, just imagine... I could track amazon cookies and break into accounts... u get the drift :)
Mike Sullivan
Thu 8th Feb '01, 4:42pm
http://www.php.net/manual/en/function.setcookie.php
You're looking for the second to last argument (domain).
etones
Thu 8th Feb '01, 4:45pm
well, looks like i've been talking utter crap all day eh Edd..
oh well :(
Hotte
Thu 8th Feb '01, 6:13pm
Iīve tried it with the domain-parameter. But when I specify an another domain than that, who is trying to set the cookie, the Browser donīt accept it.
It seems that this parameter is only for subdomains :(
Godin
Thu 8th Feb '01, 7:17pm
There was an article on cross domain cookies recently on phpbuilder I think, might wanna take a look?
http://www.phpbuilder.com/columns/chriskings20001128.php3
not sure if thats what you're after like.
etones
Fri 9th Feb '01, 4:12pm
oh yeah, i read that too.
Seems like a lot of code for litle gain, and needed control of some aspects of the server... might be wrong, usually are :)
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.