cakephp带我到多个请求的登录页面 [英] cakephp takes me to login page on multiple request
本文介绍了cakephp带我到多个请求的登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的基于cakephp的网站上,当我同时做多个请求时,cakephp会记录下我。
发生的是什么,
我点击我的网站上的一个链接,在一个新的选项卡中打开它,
现在,正在处理请求,如果我点击我的网站上的另一个链接,cakephp带我
感谢...
div class =h2_lin>解决方案我会打赌这是你的问题:
如果
*'Security.level'设置为'high',会话ID也会在请求之间重新生成。
* /
配置:: write('Security.level','high');
您遇到了两个请求同时重新生成cookie的问题。
On my cakephp based site, when i do multiple requests simultaneously, cakephp logs me out.
What happens exactly is,
I click on one of the link on my site, to open it in a new tab, now, while the request is being processed, if i click another link on my site, cakephp takes me to the login page for this link... What can be the solution for this?
Thanks...
解决方案
I would bet this is your problem:
* CakePHP session IDs are also regenerated between requests if
* 'Security.level' is set to 'high'.
*/
Configure::write('Security.level', 'high');
You're running into problems with Cake regenerating the cookie for two requests simultaneously.
这篇关于cakephp带我到多个请求的登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文