Manual:$wgCookieSetOnAutoblock

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎日本語 • ‎polski
Access: $wgCookieSetOnAutoblock
Determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked.
Introduced in version: 1.29.0 (git #1cc3a572)
Removed in version: still in use
Allowed values: boolean
Default value: false
Other settings: Alphabetical | By function

Details[edit]

The cookie that is set will expire when the block expires or after $wgCookieExpiration, whichever is shorter (the latter defaults to 30 days). This means that cookies for infinite blocks will also expire at this shorter time.

The cookie is named 'BlockID', prefixed with $wgCookiePrefix. It's value is just the hashed block ID and no other data.

For users with LocalStorage support, a matching entry is created in LocalStorage. In case the cookie is deleted, it will be recreated from this (at the time when the user opens the page-editing form).

External links[edit]