Session ID is lost in iframe

When running a website (asp.net) in an iframe the session id is lost after posting a form, the session id changes. When running the very same website outside the iframe, it works perfect

Doe only happen in IE, Firefox and Chrome work OK

THX

Taco
tacotijsmaAsked:
Who is Participating?
 
tacotijsmaAuthor Commented:
Found it. It is a security problem (feature) in IE. Solved by the following code:

Response.AppendHeader("P3P", "CP=""CAO PSA OUR""")

This will lower  the security state of the page which results in preserving the session
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.