2

I'm having an issue in IE (works in chrome and FF) where my site is in an iframe and on a request my code saves something on the session by doing this:

request.session["KEY"] = "VALUE"

However, the next request that occurs does not have the session data saved. Or rather, when I do request.session.get("KEY").....I get None.

I have already made the P3P change to the response as that was a different problem I encountered with CSRF validation. Here's what I am using for my P3P setting:

response["P3P"] = 'CP="CAO IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'

Thanks for any clues you can give.

JamesD
  • 607
  • 1
  • 8
  • 22
  • If the page is in an iframe, perhaps the issue is with cookies. The same occurs in Safari, where iframed pages are not allowed to set cookie values IF THE COOKIE IS EMPTY. You could do a test-redirect-initialize-goback cycle to ensure the cookies are initialized for your page – Luis Masuelli Nov 11 '14 at 22:17

1 Answers1

1

This is IE problem. It is not related to Django.

Have you tried P3P Potato? Worked well for me.

Community
  • 1
  • 1
raacer
  • 5,302
  • 3
  • 27
  • 46