Manual:$wgExtendedLoginCookieExpiration
From Linux Web Expert
<translate> Cookies</translate>: $wgExtendedLoginCookieExpiration | |
---|---|
If non-null, duration in seconds to use for "Keep me logged in" sessions; 0 means until the browser is closed. If null, uses $wgCookieExpiration |
|
<translate> Introduced in version:</translate> | 1.26.0 (Gerrit change 141248; git #16cea35d) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (integer) |
<translate> Default value:</translate> | 180 * 86400 (1.29+, (Gerrit change 321592))null (1.26-1.28) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Details
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.26
<translate> MediaWiki version:</translate> |
The purpose of this cookie is to allow having a different (usually longer, but this is not enforced) duration for "Keep me logged in" 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 "Keep me logged in" 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.
The values mean:
- null - MW will follow $wgCookieExpiration instead.
- Positive integer - Duration of "Keep me logged in" sessions, in seconds.
- 0 - "Keep me logged in" sessions will last until the browser closes.