Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 26th, 2006, 06:45 AM
Super Mango
Guest
 
Posts: n/a
Default 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,

  #2  
Old January 26th, 2006, 10:15 AM
Erwin Moller
Guest
 
Posts: n/a
Default Re: Cookie in frame

Super Mango wrote:
[color=blue]
> 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?[/color]

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.
[color=blue]
>
> Thanks,[/color]


Regards,
Erwin Moller
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles