Maybe I am stupid. After spending 6 - 10 hours wondering why my site doesn’t work in an iFrame in [IE](http://www.microsoft.com/windows/products/winfamily/ie/default.mspx “Internet Explorer: Home Page”), I was beginning to suspect the worst. Of course, I wouldn’t be posting to this blog without the solution.

Basically, if you are in a frame/iFrame with a different domain than the window, you are a 3rd party. Unless you set a [P3P](http://www.w3.org/P3P/ “P3P: The Platform for Privacy Preferences”) header, IE will block all cookies with extreme prejudice. In rails this can be accomplished by using a **before\_filter**, to set a **response.headers['P3P']** value to something reasonable. If you don’t get through the spec, [this page](http://tumblelog.marco.org/post/1287369 “Marco.org Tumblelog - P3P sucks: How to get frame cookies unblocked in IE6 and IE7″) seems reasonable.

The real annoyance comes from the fact that P3P is so forgettable. Every seasoned developer I mention the solution to, said they exact same thing, “Oh yeah, our company ran into that, what a crock . . . “

Post Information

Tags:

  • No Tags

We're Reading

Feeds/Syndication

3 Responses to “P3P - Not My Idea of a Good Time”

Leave a Reply