Session ID is lost in iframe

Posted on 2009-04-29
Last Modified: 2013-11-19
When running a website ( 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


Question by:tacotijsma
    1 Comment

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Building “do-it-yourself” web sites has become an epidemic. There are so many blogs, web sites and even books that "teach" you how to build your web site in a few extremely simple and easy steps. Building a web site has become easier than boiling an…
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now