I have a site whose every page uses JavaScript to redirect visitors to a site use agreement page until they've accepted the agreement. When they click OK, a cookie is saved and the pages stop redirecting.
It worked fine until the site was displayed from within a wrapper page sitting on a different domain.
Here's the set-up:
- The page the user opens is a frameset on Domain A ( www.blah.net/wrapper.html).
- The top frame points to a page on Domain A that has a banner.
- Bottom frame is most of the page and points to my site on Domain B (www.blah.com/mysite.shtml).
- The wrapper page on Domain A is just a frameset. It has no programming that might interact with Domain B's cookies.
- The cookie currently has no domain info, and is recognized fine when you go directly to the site on Domain B.
- Despite the difference in their TLD endings, Domain A and Domain B point to the same server.
Can anyone explain why this situation would interfere with the cookie? Is the cookie being passed back and forth between domains and being blocked for security reasons?
Is there a simple way to fix it?
Thanks.