[英]P3P and PHP session problem with iframes in Internet Explorer 9
I have a contact form inside of an iframe, which uses captcha, and therefore requires session variables.我在 iframe 内部有一个联系表格,它使用验证码,因此需要 session 变量。 It works fine in every browser except IE9.
它在除 IE9 之外的所有浏览器中都能正常工作。 To make it work in IE8, I added the following line at the beginning of the php document:
为了让它在 IE8 中工作,我在 php 文档的开头添加了以下行:
header('P3P:CP="CAO IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
However, this doesn't appear to work in IE9.但是,这在 IE9 中似乎不起作用。 Any ideas?
有任何想法吗?
Best Answer: @user973810最佳答案:@user973810
Thanks a lot.非常感谢。 This
这个
header('P3P: CP="NOI ADM DEV PSAi NAV OUR STP IND DEM"');
helped me out very much.帮了我很大的忙。 It's questionable why only the IE does such strange things.
值得怀疑的是为什么只有 IE 会做这些奇怪的事情。
Btw: here's the explanation for that.顺便说一句:这是对此的解释。 ;)
;)
Source: http://www.p3pwriter.com/lrn_111.asp来源: http://www.p3pwriter.com/lrn_111.asp
this one works for me IE to accept cross-browser cookies on all browsers这个适用于我IE 在所有浏览器上接受跨浏览器 cookies
add the following bit of code prior to any page output在任何页面之前添加以下代码位 output
header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"');
or this in the head block或者这个在头块中
<meta http-equiv="P3P" content='CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"' />
I've used this header and been able to save cookies in IE9:我已经使用了这个 header 并且能够在 IE9 中保存 cookies:
header('P3P: CP="NOI ADM DEV PSAi NAV OUR STP IND DEM"');
I've tried to find a resource for what all of these mean, but have never seen one.我试图找到所有这些含义的资源,但从未见过。 I do notice that there are some rules listed in my header that aren't in yours.
我确实注意到我的 header 中列出的一些规则不在你的范围内。
I also host a p3p policy on the server, as outlined here: http://www.awardsites.com/tutorials/w3c/p3p_privacy-01.htm我还在服务器上托管了一个 p3p 策略,如下所述: http://www.awardsites.com/tutorials/w3c/p3p_privacy-01.htm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.