【发布时间】:2015-07-21 05:17:41
【问题描述】:
大家好,
我想知道是否可以将 ActivityTimeOut 设置设置为 30 天?
我实际上尝试将它放在 30 天... 2592000 秒 = 30 天..
然而,在几个小时不活动后,EzPublish 退出我的帐户。
【问题讨论】:
标签: content-management-system ezpublish
大家好,
我想知道是否可以将 ActivityTimeOut 设置设置为 30 天?
我实际上尝试将它放在 30 天... 2592000 秒 = 30 天..
然而,在几个小时不活动后,EzPublish 退出我的帐户。
【问题讨论】:
标签: content-management-system ezpublish
根据 eZ Publish 文档:
# Number of seconds before a session is considered inactive/logged out, 1 hour is standard
ActivityTimeout=3600
查看使用此设置的内核代码,看起来它对真正断开用户连接没有任何影响,只是考虑用户处于非活动状态(通过@ 987654322@ 函数),用于管理界面的 Admin > Sessions 部分(如果您使用 sql 存储会话,这不是 eZ Publish 最新 4.x 版本中的默认行为)。
你试过检查这些参数了吗?
[Session]
# "Remember me" feature of the login.
# Number of seconds a session cookie will last,
# if an user wants to store current session to the cookie
# should click on "Remember me" checkbox on login page.
# Empty or 0 means this ability will be disabled and CookieTimeout will be used.
RememberMeTimeout=
# Number of seconds a session will last, 3 days is standard
SessionTimeout=259200
# Number of seconds a session cookie will last,
# 0 means until browser is closed
# Leaving the field empty means to use the default PHP settings (session.cookie_lifetime)
CookieTimeout=
如您所见,cookie 是您的 PHP 服务器配置的默认控制器,因此您也应该看看这里。
【讨论】: