Internet Explorer 9中iframe的P3P和PHP会话问题 [英] P3P and PHP session problem with iframes in Internet Explorer 9

查看:146
本文介绍了Internet Explorer 9中iframe的P3P和PHP会话问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iframe中有一个联系表单,该表单使用验证码,因此需要会话变量.它在除IE9之外的所有浏览器中都能正常工作.为了使其能够在IE8中工作,我在php文档的开头添加了以下行:

I have a contact form inside of an iframe, which uses captcha, and therefore requires session variables. It works fine in every browser except IE9. To make it work in IE8, I added the following line at the beginning of the php document:

header('P3P:CP="CAO IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); 

但是,这似乎在IE9中不起作用.有什么想法吗?

However, this doesn't appear to work in IE9. Any ideas?

推荐答案

最佳答案:@ user973810

Best Answer: @user973810

非常感谢.

header('P3P: CP="NOI ADM DEV PSAi NAV OUR STP IND DEM"');

对我帮助很大.令人怀疑的是,为什么只有IE会做这种奇怪的事情.

helped me out very much. It's questionable why only the IE does such strange things.

顺便说一句:这是对此的解释. ;)

Btw: here's the explanation for that. ;)

  • NOI网站未收集已识别的数据.
  • ADM信息可用于网站及其计算机系统的技术支持.用户不能选择启用或停用此用法(与标签ADMa相同).
  • DEV信息可用于增强,评估或以其他方式查看站点,服务,产品或市场.用户不能选择启用或停用此用法(与标记DEVa相同).
  • PSAi信息可用于创建或构建与假名标识符绑定的特定个人或计算机的记录,而无需将已标识的数据(例如姓名,地址,电话号码或电子邮件地址)与该记录联系在一起.此配置文件将用于确定个人的习惯,兴趣或其他特征,以进行研究,分析和报告,但不会用于尝试识别特定的个人.选择加入意味着用户必须事先获得同意.
  • 通过浏览网站被动生成的NAV数据-例如,访问了哪些页面以及用户在每个页面上停留的时间.
  • 我们自己和/或作为代理的实体或我们作为代理的实体.
  • 保留STP信息以达到规定的目的.这要求信息尽早被丢弃.站点必须具有建立销毁时间表的保留策略.保留政策必须包含在网站的可读性隐私政策中或与之链接.
  • IND信息保留的时间不确定.没有保留策略将反映在此选项下.如果收件人是公共论坛,则这是适当的保留政策.
  • DEM有关个人特征的数据-例如性别,年龄和收入.
  • NOI Web Site does not collected identified data.
  • ADM Information may be used for the technical support of the Web site and its computer system. Users cannot opt-in or opt-out of this usage (same as tag ADMa).
  • DEV Information may be used to enhance, evaluate, or otherwise review the site, service, product, or market. Users cannot opt-in or opt-out of this usage (same as tag DEVa).
  • PSAi Information may be used to create or build a record of a particular individual or computer that is tied to a pseudonymous identifier, without tying identified data (such as name, address, phone number, or email address) to the record. This profile will be used to determine the habits, interests, or other characteristics of individuals for purpose of research, analysis and reporting, but it will not be used to attempt to identify specific individuals. Opt-in means prior consent must be provided by users.
  • NAV Data passively generated by browsing the Web site -- such as which pages are visited, and how long users stay on each page.
  • OUR Ourselves and/or entities acting as our agents or entities for whom we are acting as an agent.
  • STP Information is retained to meet the stated purpose. This requires information to be discarded at the earliest time possible. Sites MUST have a retention policy that establishes a destruction time table. The retention policy MUST be included in or linked from the site's human-readable privacy policy.
  • IND Information is retained for an indeterminate period of time. The absence of a retention policy would be reflected under this option. Where the recipient is a public fora, this is the appropriate retention policy.
  • DEM Data about an individual's characteristics -- such as gender, age, and income.

来源: http://www.p3pwriter.com/lrn_111.asp

这篇关于Internet Explorer 9中iframe的P3P和PHP会话问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆