symfony2 在一段时间不活动后注销 [英] symfony2 logout after a period of inactivity
本文介绍了symfony2 在一段时间不活动后注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Symfony2 (2.0.9) 项目和 B-Office 部分我不明白在哪里设置空闲时间?识别生成一个很好的会话cookiePHPSESSID"等于变量(config.yml)framework:session:lifetime:86400(一天)但我一小时后自动断开连接!
I got a Symfony2 (2.0.9) project and the B-Office part I do not understand where is set the idle time ? identification generates a good session cookie "PHPSESSID" equal to the variable (config.yml) framework:session:lifetime:86400 (one day) BUT I'm automatically disconnected after an hour !
推荐答案
您是否检查了服务器上的会话生存期?请参阅session.gc_maxlifetime 的文档.默认值为:
Did You check session lifetime on the server ? See the documentation for session.gc_maxlifetime. The default value is:
session.gc_maxlifetime = 1440
这意味着 24 分钟.
Which means 24 minutes.
这篇关于symfony2 在一段时间不活动后注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文