We've temporarily got our shop hosted on a different domain form our website but need to pass the cookie information between the two. Is there anyway to make the orginal domain write cookies out for the shop domain?
thanks frances
dcrombie
6:02 pm on Jan 31, 2005 (gmt 0)
Only if they are both subdomains - ie. www.example.com and site2.example.com
aau96113
10:51 am on Feb 1, 2005 (gmt 0)
Are you sure. its just we use an external company to collect webstats for us. To do this they have to place a cookie on the user's machine from our website. They seem to do it by placing a blank image onscreen that references a perl script on their server. This allows them to place their third party cookie. I can't find any example of code like this though.
thanks frances
dcrombie
11:06 am on Feb 1, 2005 (gmt 0)
A cookie can only be written for the current domain. It is possible to use an resource sourced from another server to set the cookie - but then it's being set by the server hosting the image/script and not from your server.