Zend Framework-Internet Explorer-phpsessid cookie问题 [英] Zend Framework - Internet Explorer - phpsessid cookie issue

查看:122
本文介绍了Zend Framework-Internet Explorer-phpsessid cookie问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个密集的Zend Framework网站应用会话.

I've created a Zend Framework Website App session intensive.

它在Chrome和Firefox中效果很好,但在IE中不起作用. 该会话将重置IE中的每个页面.

It works great in Chrome and Firefox but it is not working in IE. The session resets every page in IE.

查看标题,我发现IE浏览器在同一浏览器中的每个get或post中都获得了不同的phpsessid cookie,因此该会话无法正常工作.在FF和Chrome中,phpsessid cookie仍然可以正常运行.

Looking into the headers I find that IE browser is getting a different phpsessid cookie in every get or post within the same browser so the session is not working. In FF and Chrome the phpsessid cookie persists ok.

任何人都知道为什么只能在IE中发生这种情况吗?

Anyone knows why this can happend only in IE?

bootstrap.php中有以下代码:

I have this code in bootstrap.php:

$generalSession  = new Zend_Session_Namespace('MyNameHere');
$generalSession ->setExpirationSeconds(1000 * 60);

我使用以下方法恢复会话:

I recover the session using:

Zend_Auth::getInstance()->getStorage()->read();

使用IE9,我的IE隐私和安全配置被设置为最低.

My IE configuration for privacy and security is set to minimum, using IE9.

我尝试在标题中放置一个p3p cookie,但这没有什么区别.

I've tryed placing a p3p cookie in the headers but it made no difference.

我想念什么?

推荐答案

我终于解决了IE的问题.

I've finally solved the problem with IE.

问题是我们的开发服务器是dev_landing.mysite.com,IE拒绝了名称中带有"_"的网站的标头...这是IE设计的.

The thing was that our dev server was dev_landing.mysite.com and IE rejects headers from sites with "_" in their names... this is by design in IE.

我在这里找到了完整的解释: http://odedpeer .blogspot.com.es/2009/08/why-are-my-http-cookies-rejected-by-ie.html

I found the complete explanation here: http://odedpeer.blogspot.com.es/2009/08/why-are-my-http-cookies-rejected-by-ie.html

继续做!!

这篇关于Zend Framework-Internet Explorer-phpsessid cookie问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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