Problem with session in Facebook application running in IE8

August 12, 2011 · Posted in Development 

While building facebook applications using iframe you may have a problem with session persistance in IE8.

When you run the application in IE8, the session data is not persisted. But everything works fine in Firefox and Chrome.

This is a specific problem with pages inside iframe and Internet Explorer. Internet Explorer handle third party cookies the way the cookies are not transferred to the page inside iframe (when this page is located on a different domain).

 

Solution for PHP:

Add this header:

header('P3P: CP="CAO PSA OUR"');

Comments

  • BORFFF

    THANKS!!!!