Codeigniter flash数据在某些浏览器中不起作用 [英] Codeigniter flash data not working in certain browsers

查看:97
本文介绍了Codeigniter flash数据在某些浏览器中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些Codeigniter flashdata的问题。一切似乎在Firefox中工作,但在Chrome(和我的移动BB浏览器,FWIW)似乎没有flashdata在页面之间持久。我应该注意,当我在本地工作,即使在Chrome中,一切都很好。但是在生产网站上的chrome,flashdata不会持久。

I’m having some issues with Codeigniter flashdata. Everything seems to be working in Firefox, but in Chrome (and my mobile BB browser, FWIW) it seems as if no flashdata is persisting between pages. I should note also that everything is ok when I work locally, even in Chrome. But on the production site in chrome, flashdata doesn’t persist.

我已经花了更好的一部分晚上研究这个问题,但没有其他线程/想法做的伎俩。没有404可以干扰。

I’ve spent the better part of the evening researching the issue, but no other threads/ideas seem to do the trick. There are no 404s that could be interfering.

非常感谢任何帮助。

谢谢! >

Thanks!

推荐答案

修复了它!有一些奇怪的东西在某些浏览器正在寻找我们的favicon这样的方式,我们的MY_controller是每次请求被调用两次(即浏览器寻找我们的图标被解释为一个动作调用)。非常奇怪的东西,永远调试和计算出来,但非常可喜的是,一旦我做到了。希望这可以帮助任何遇到同样问题的人。

Fixed it! There was some weird stuff going on with certain browsers looking for our favicon in such a way that our MY_controller was being called twice on every request (i.e. the browser's looking for our favicon was being interpreted as an action call). Very strange stuff, took forever to debug and figure it out but very gratifying once I did. Hope this helps anyone who encounters the same sort of issue.

这篇关于Codeigniter flash数据在某些浏览器中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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