Accessing Domain Cookies within an iFrame on Internet Explorer

后端 未结 3 2159
既然无缘
既然无缘 2020-12-13 03:04

My domain (let\'s call it www.example.com) creates a cookie. On another site (let\'s say, www.myspace.com), my domain is loaded within an iFrame.

On every browser (F

相关标签:
3条回答
  • 2020-12-13 03:27

    Internet Explorer's default privacy setting means that 3rd-party cookies (e.g. those in iframes) are treated differently to 1st party cookies. (by default, 3rd party cookies are silently rejected).

    For IE6 to accept cookies in an iframe, you need to ensure your site is delivering a P3P compact header.

    See http://msdn.microsoft.com/en-us/library/ms537343.aspx for more.

    0 讨论(0)
  • 2020-12-13 03:34

    That sounds like a privacy setting issue to me. Either increase your security settings in IE (which you won't be able to convince your users to do), or take another approach.

    0 讨论(0)
  • 2020-12-13 03:36

    In PHP: header ( "p3p:CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

    0 讨论(0)
提交回复
热议问题