|
Posted by Erwin Moller on 10/04/79 11:58
mutale82@gmail.com wrote:
> I need to integrate a tracking system with a few clients, the clients
> agree to place <img src="....."> tags but not to place a file on there
> servers.
>
> I need to set a cookie on the visitor computer and when the visitor
> preform an action to read the cookie and send the cookie infotmation to
> my server.
>
> I tried everything, and I cant read the cookie, I can set the cookie
> using a javascript file that I placed on my server.
>
> But to read the cookie and send the information I need to use PHP or
> ASP file, and I cant do that unless the visitor has 3rd party cookies
> enable.
>
> How can I intergrate the systems?
You can not.
Cookies are domainbound.
So if you set a cookie from www.yourfirstdomain.com, you cannot retrieve
that cookie from www.yourseconddomain.com.
The reason is simply that the browser (if it is not broken) only sends that
cookies set by some domain (via JavaScript, or PHP), along with its request
for some page, if the domains match.
If this was not the case, you could read all cookies from all domains, which
is not desirable.
Maybe IE's 'trusted domains' can overcome this valid limitation, not sure.
Regards,
Erwin Moller
[Back to original message]
|