cakephp使用safari和互联网浏览器时失去会话 [英] cakephp loses sessions when using safari and internet explorer
问题描述
我使用ajax和会话为cakephp项目,但它看起来像会话丢失,当我使用safari或IE。我遵循了会话在IE和cakephp 1.3在通过AJAX保存时不能正常工作
我已经将我的core.php文件设置为下面的设置。
I'm using ajax and sessions for a cakephp project but it looks like the session gets lost when I use either safari or IE. I've followed the solutions in Sessions in IE and cakephp 1.3 not working properly when saving via AJAX I've set my core.php files to the settings below.
Configure::write('Session.checkAgent', false);
Configure::write('Security.level', 'low');
我已经将我的蛋糕版升级到2.3.0,我仍然遇到相同的问题。请帮忙?
I've already upgraded my cake version to 2.3.0 and I'm still having the same issues. Please help? Thank you.
以下是我的粘贴盒
jscript
http://pastebin.com/WDCaTkEH
php - http://pastebin.com/YL7qkLf0
推荐答案
似乎有什么问题蛋糕某处...添加session_start();作为webroot / index.php的第一行解决了我的问题。
there seems to be something wrong with cake somewhere ... adding session_start(); as first line on webroot/index.php solved the issue for me.
这篇关于cakephp使用safari和互联网浏览器时失去会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!