Manual:$wgExtendedLoginCookieExpiration

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎español • ‎polski • ‎português • ‎中文 • ‎日本語
Cookies: $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
Introduced in version:1.26.0
Removed in version:still in use
Allowed values:integer
Default value:null
Other settings: Alphabetical | By function

Details[edit]

MediaWiki version: 1.26

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.

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.

See also[edit]