Re: stupid crosscookie function
| From: | Tim Zickus | Date: | Fri, 15 Dec 2000 22:37:15 +0000 |
| Subject: | Re: stupid crosscookie function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30600@lists.php.net to get a copy of this message | ||
Yes, that's correct. You can share cookies within a sub-domain, but not
across domains.
It's a security/privacy feature. You can get around it by having a
third-party cookie server set a cookie that goes with an image (invisible
1px by 1px if you want) and then having back-channel communications methods
of sharing the data. This is how the weasely ad banner companies track you
from site to site. :-)
Browsers aren't supposed to accept image cookies from third-party domains,
but they do anyway...it probably breaks a business model someplace to do the
right thing.
- Tim
----- Original Message -----
From: "Richard Lynch" <richard@zend.com>
To: <php-general@lists.php.net>
Sent: Friday, December 15, 2000 5:01 PM
Subject: Re: [PHP] stupid crosscookie function
> I think maybe you can do it between different sub-domains (eg
> www.domain1.com and www2.domain1.com) but not two different domains...
>
> This is just a theory based on my limited reading of the Cookie spec and
its
> intent...
>
> I don't really know.