Manual:$wgExtendedLoginCookieExpiration/zh

Category:MediaWiki configuration settings/zh#ExtendedLoginCookieExpirationCategory:MediaWiki configuration settings introduced in version 1.26.0/zh#ExtendedLoginCookieExpirationCategory:MediaWiki configuration settings still in use/zh#ExtendedLoginCookieExpirationCategory:Cookies variables/zh#ExtendedLoginCookieExpiration
Cookies: $wgExtendedLoginCookieExpiration
如果非空,则为“记住我的登录状态”会话的持续时间(秒);0意味着直到浏览器关闭。 如果为空,使用$wgCookieExpiration
引进版本:1.26.0 (Gerrit change 141248; git #16cea35d)
移除版本:仍在使用
允许的值:(整数)
180 * 86400 (1.29+, (Gerrit change 321592))
null (1.26-1.28)

详情

MediaWiki版本:
1.26

The purpose of this cookie is to allow having a different (usually longer, but this is not enforced) duration for "记住我的登录状态" login-related cookies. This means you can e.g. set the standard cookie duration (widely used for MW cookies) to 30 days, but set the "记住我的登录状态" duration to a year.

Logins where the "keep me logged in" option is not checked are entirely unaffected by this setting.

Logins where "keep me logged in" is set use a mechanism that can recover from server-side session expiry, so the lifetime of the extended login is unaffected by $wgObjectCacheSessionExpiry.

值的意思:

  • Positive integer - Duration of "记住我的登录状态" sessions, in seconds.
  • 0 - "记住我的登录状态" sessions will last until the browser closes.

參見

Category:Cookies variables/zh Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.26.0/zh Category:MediaWiki configuration settings still in use/zh