Codeigniter 2x firefox会话 [英] Codeigniter 2x firefox session
问题描述
我在firefox浏览器的会话有问题,一切工作在Chrome和IE - 它正确保存会话,但Firefox不。我已经尝试与本地会话保存在数据库的会话 - 在FF它保存它,但再次不工作,只是在登录到它重定向的页面,如果我没有登录。这是只有在FF。我看到了其他问题,从中他们看到Native会话类,但没有用。
I have problem with the sessions in firefox browsers, everything works in Chrome and IE - it saves sessions correctly , but Firefox doesn't . I've tried with Native sessions to save in the db the session - in FF it saves it but again not working, just after login to the page it redirects as if I'm not logged in.It does this things only in FF. I saw other questions like this and from them I saw the Native session classs, but no use.
推荐答案
在控制器构造函数中使用以下头文件,并且它做了一个诀窍。
For this same problem I use the following header in Controller constructor and it did the trick.
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
这篇关于Codeigniter 2x firefox会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!