Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个问题。有一个站点的 codeigniter 会话时间设置为 7200,并且有一些用户登录。
我想他们中的一些人在 7200 秒内什么都不做。如果现在我将时间会话更改为零(没有过期),如果他们什么都不做,现有的登录用户将被注销?
谢谢大家。
如果设置$config['sess_expiration']为0它意味着会话不会过期。
$config['sess_expiration']
0
在您编辑配置后的下一个请求中,会话类将在清理旧会话之前查看此设置,看到它设置为“0”,并且什么也不做。所有活动会话将保持活动状态,不会被丢弃。不会有旧设置的“记忆”。