Forum Moderators: open

Message Too Old, No Replies

use cookies with an iframe on diff domain

use cookies with an iframe on diff domain

         

Nitram

3:43 pm on Jan 28, 2005 (gmt 0)

10+ Year Member



I use an iframe to run a server side service from static parent pages.

I need to write a cookie to the client with information from the Iframe. Whats the best way to proceed? I was hoping to find an ASP solution, unless someone can provide a better idea. Ive tried reading a variable out of the iframe but that results in a permission denied message.

Thanks!

dataguy

12:33 pm on Jan 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is the iframe from a different domain? I'm looking through my notes for the definitive anwser, but I think this is a feature, not a flaw...

MatrixBrains

1:07 pm on Jan 29, 2005 (gmt 0)

10+ Year Member



Hi,

Is Response.Cookies("somevariable") = "something"
not working in this setting?

Regards,
MB

Nitram

6:54 pm on Jan 29, 2005 (gmt 0)

10+ Year Member



Yes, the iframe is accessing a server side page on a diferent domain. All of my testing has yielded "access denied" messages trying to accessing any values or run any scripts through JavaScript and ASP response.cookie is being blocked by IE6 (its a 3rd party cooke).

Maybe if I could find a P3P compacy header that allowed IE6 to allow the ASP cookie that woud work?