Maybe I am stupid. After spending 6 - 10 hours wondering why my site doesn’t work in an iFrame in IE, 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 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 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:

We're Reading

Feeds/Syndication

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

Leave a Reply