CodeIgniter 2.x会话和Internet Explorer [英] CodeIgniter 2.x sessions and Internet Explorer

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

问题描述

我一直在网上阅读关于CodeIgniter及其会话和Internet Explorer的问题。很多它似乎围绕会话名称中没有下划线的名称。这些文章似乎都是CI 1.x. CI还有这个问题吗?我试图删除下划线,它没有帮助。我也尝试添加了以下代码:

I've been reading a lot online about CodeIgniter and its issues with sessions and Internet Explorer. A lot of it seemed to center around the name of the session not having an underscore in the name. These articles all seemed to be for CI 1.x. Is CI still having this issue? I tried removing the underscore and it didn't help. I also tried adding this code:

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

但这没有帮助。我们正在尝试做的是给我们的经销商一个链接,他们可以放在他们的网站,将打开一个iframe我们的网站的一部分。 iframe在我们的网站正常工作,但不在我们的经销商网站。这可能与跨域问题有关吗?

But that didn't help either. What we are trying to do specifically is give our dealers a link they can put on their site that will open an iframe to part of our site. The iframe works fine on our site, but not on our dealers sites. Could this have to do with cross-domain issues?

现在是否应该在CI中解决这个问题?我认为他们的本地会话不会有这个问题。

Isn't this something that should have been resolved in CI by now? I would think their native sessions would not have this problem.

推荐答案

一些事情:


  1. CodeIgniter没有会话和IE的问题。 IE在cookie中有一个下划线的问题;它与CI(版本1.7或2.x)无关。

  1. CodeIgniter has no issue with sessions and IE. IE has issues with an underscore in the cookie; it has nothing to do with CI (version 1.7 or 2.x).

IE具有防止跨网站Cookie的安全功能。所以你需要确保这些没有踢和破坏的cookie,甚至开始之前。编辑:详情请参阅这里: http://codeigniter.com/forums/viewthread/121637/

IE has security features that prevent cross-site cookies. So you need to ensure these are no kicking in and destroying the cookie before it even starts. see here for more details: http://codeigniter.com/forums/viewthread/121637/.

让您的经销商通过Firefox测试网站。您确定它实际上是IE的问题,或者只是一个问题?

Get your dealer to test the site via Firefox. Are you sure it is actually an issue with IE, or just an issue in general?

设置 sess_match_ip sess_match_useragent FALSE ,因为这可能会导致您描述的问题。

Set sess_match_ip and sess_match_useragent to FALSE, as that could cause the issue you have described.

请确保您已设置 cookie_domain cookie_path

确保您已将 cookie_secure 设置为 FALSE < iframe> 正在使用https)。

Make sure you have set cookie_secure to FALSE (unless the <iframe> is going over https).

这篇关于CodeIgniter 2.x会话和Internet Explorer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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