Google Answers Logo
View Question
 
Q: Cookies in frameset (to mask url) ( No Answer,   0 Comments )
Question  
Subject: Cookies in frameset (to mask url)
Category: Computers > Internet
Asked by: shane43-ga
List Price: $30.00
Posted: 09 Aug 2004 20:59 PDT
Expires: 08 Sep 2004 20:59 PDT
Question ID: 385705
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.

Clarification of Question by shane43-ga on 20 Aug 2004 18:04 PDT
I got a tip that I should use apache's modrewrite in order to help me
out here. Is it possible to redirect a user off server? If I
redirected the user to somewhere off server, would the cookie issue be
solved?

I was told I could do something like:
http://www.serverA.com/?var1=blah
to mask to 
http://www.serverB.com/index.php?var=blah
and it would still look like I was accessing server A.

Any thoughts?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy