为什么IE7拒绝来自框架中的页面的会话Cookie? [英] Why is IE7 rejecting session cookies from a page in a frame?

查看:154
本文介绍了为什么IE7拒绝来自框架中的页面的会话Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个由其他网站加载到框架集的网站(其中网域名称与父网站不同)。



这在所有浏览器(包括IE6)中工作正常,除了IE7。



网站是使用LAMP,MySQL 5和PHP 5实现的 - 是的,可能与实际不相关


解决方案

可能会尝试向您的网站添加 P3P 标头,如下所示:

  header('P3P:CP =ALL ADM DEV PSAi COM OUROTRo STP IND ONL'); 

查看此博客


I am building a website that is loaded into a frameset by other sites (where the domain names are different for the parent site).

This works fine in all browsers (including IE6), except for IE7. It is not registering the session at all and simply does not work.

Site is implemented using LAMP, MySQL 5, and PHP 5 - yeah, probably not relevant to the actual problem but still worth mentioning.

Any suggestions?

解决方案

You might want to try adding a P3P header to your site as follows:

header('P3P: CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL"');

See this blog post for details.

这篇关于为什么IE7拒绝来自框架中的页面的会话Cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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