cakephp 带我到多个请求的登录页面 [英] cakephp takes me to login page on multiple request
本文介绍了cakephp 带我到多个请求的登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我基于 cakephp 的站点上,当我同时执行多个请求时,cakephp 会将我注销.
On my cakephp based site, when i do multiple requests simultaneously, cakephp logs me out.
究竟发生了什么,
我点击我网站上的链接之一,在新标签中打开它,现在,在处理请求时,如果我单击我网站上的另一个链接,cakephp 会将我带到此链接的登录页面...有什么办法可以解决这个问题?
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?
谢谢...
推荐答案
我敢打赌这是你的问题:
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');
您遇到 Cake 同时为两个请求重新生成 cookie 的问题.
You're running into problems with Cake regenerating the cookie for two requests simultaneously.
这篇关于cakephp 带我到多个请求的登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文