I need a solution for sharing cookies between domains. We have 2
servers set up: one that simply houses a frameset and is accessed
through a pretty domain name and another that serves the contents of
the frameset and needs to have a somewhat hidden location.
For example:
Server A:
prettydomainname.com
will just have a frameset with 99% and 1%, and in the 99% we have
the source pointing to the page on server B. When people go here, they
will get the contents of server B while the pretty domain name in the
browser doesn't change.
Server B:
ugly-bad-domain.com
will house the guts of the site, but we need the location to remain
fairly anonymous.
Anyway, we have some PHP scripts on server B which need to set a
cookie, so that we can track which of our partners has been sending us
traffic. However, when we set the cookie, it's not working properly.
I'm assuming it's because the browser still thinks we are on site A
and won't let us read site B cookies since they are from a different
domain. We know it isn't a scripting problem because if we go directly
to site B and run the scripts the cookies work flawlessly.
Are there any solutions to this?
We tried messing around with the domain parameter of PHP's setcookie()
[http://www.php.net/manual/en/function.setcookie.php] but that didn't
work.
We also considered implementing the new privacy policy standard.
Info about it is here:
http://www.p3pwriter.com/Privacy_Policy_FAQ.asp
Instructions on how to set it up are here:
http://www.w3.org/P3P/usep3p.html
Do you think that will work? It seems like a lot of work, and I
wouldn't know which server to put the file on.
Alternatively - if there is a way to mask server B's url another way
besides using a frameset that may be able to work as well.
Thank you for your time. |