You are here: Re: domain cookie problem... « PHP Programming Language « IT news, forums, messages
Re: domain cookie problem...

Posted by Erwin Moller on 10/10/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация