CakePHP的会话/ AUTH记录了间歇性 [英] CakePHP session/auth logging out intermittently

查看:103
本文介绍了CakePHP的会话/ AUTH记录了间歇性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有,他们将使用一个屏幕并获得踢回登录屏幕上立即对他们的下一个请求从我的用户举报和投诉。它不会发生所有的时间,但随机。

I'm having reports and complaints from my user that they will be using a screen and get kicked back to the login screen immediately on their next request. It doesn't happen all the time but randomly.

我使用CakePHP和验证组件,它似乎比这个问题的工作以及其他

I am using CakePHP and the Auth component, which seem to work well other than this issue

我在蛋糕上论坛上一些反馈,一旦这有时由404请求,如果你有一个破碎的形象链接或丢失的图标文件重置会话,即引起的。我有萤火开放,没有失败的请求,因此我排除了这一可能性作为一种可能性,但用户也越来越零星注销。这似乎是跨浏览器和操作系统发生。

I got some feedback on the Cake forums once that this is sometimes caused by a 404 request that resets the session, i.e. if you have a broken image link or a missing favicon file. I have firebug open and there are no failed requests, so I ruled this out as a possibility, but the user is getting sporadically logged out. This seems to occur across browsers and operating systems.

下面是我的配置设置的摘要:
Security.level =高
查看Session.Timeout = 1200 //这意味着我的实际超时应12000秒
Session.save = PHP

Below is a summary of my config settings: Security.level = high Session.timeout = 1200 // this means my actual timeout should be 12,000 seconds Session.save = php

我真的很茫然,什么是导致此问题...

I am really at a loss as to what is causing this issue...

推荐答案

我也有我的安全设置为高的问题。当你把它设置为高,其再生每个请求的会话:
CakePHP的会话ID也重新生成请求之间,如果'Security.level设置为高。

I have also had a problem with my security set to high. When you have it set to high it regenerates the session on every request: "CakePHP session IDs are also regenerated between requests if 'Security.level' is set to 'high'."

我有这个问题的跨浏览器一样,所以我知道它不是最好的解决办法,但我只是改变了安全设置为中等,并改变了我的会话超时,以反映该设置以来还没有出现过任何问题。

I had this problem cross-browser as well, so I know its not the best solution but I just changed the security setting to medium, and changed my session timeout to reflect that setting and have not had any problems since.

这篇关于CakePHP的会话/ AUTH记录了间歇性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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