CakePHP会话过期 - 频繁 [英] CakePHP Session Expires - Frequently

查看:146
本文介绍了CakePHP会话过期 - 频繁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CakePHP 1.3和core.php。我设置以下设置

I am using CakePHP 1.3 and in core.php. I set the following settings

配置:: write('Security.level','low');

Configure::write('Security.level', 'low');

Configure :: write('Session.timeout','12');

Configure::write('Session.timeout', '12');

但是登录后,它经常注销。我不使用auth组件

But after logged in, its frequently logged out. I am not using auth component

推荐答案

Session.timeout - 基本会话超时(以秒为单位)。
use

Session.timeout - Base session timeout in seconds. use

Configure::write('Session.timeout', 12 * 60 );

这篇关于CakePHP会话过期 - 频繁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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