468,241 Members | 1,715 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,241 developers. It's quick & easy.

Cookie in frame

Hi,

I have this login that works fine when the page is presented as-is, but
I want to allow other site owner to put any page from my site in a
frame in their own site.

The thing is that when the page is called from a different domain, the
cookie is not sent to the server.

What can I do?

Thanks,

Jan 26 '06 #1
1 1245
Super Mango wrote:
Hi,

I have this login that works fine when the page is presented as-is, but
I want to allow other site owner to put any page from my site in a
frame in their own site.

The thing is that when the page is called from a different domain, the
cookie is not sent to the server.

What can I do?
Nothing simple.
Cookies are NOT send crossdomain.
Think about it when that was possible:
1) Every visit to any site would include your WHOLE set cookies. A waste of
bandwidth
2) sucurity. If ANY site could retrieve all your cookies, then they could
easily hijack your current session to somewhere.
You don't want that.

So: If you want to propagate your cookie to another domain, send it yourself
explicitly.
like (GET):
http://www.otherdomain.com/somescrip...jksdahfjkasdhf

(or via POST)

I am not sure what the other site wants to do with the cookie, but that is
the way to send it.

Thanks,

Regards,
Erwin Moller
Jan 26 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Maarten | last post: by
1 post views Thread by Rahul Chatterjee | last post: by
reply views Thread by Dax Westerman | last post: by
17 posts views Thread by Bruno | last post: by
5 posts views Thread by mosscliffe | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.