Other languages:
English • ‎magyar • ‎polski • ‎中文 • ‎日本語
Cookies: $wgCookieSecure
Whether cookies are secured.
Introduced in version:1.6.0 (r12253)
Removed in version:still in use
Allowed values:(boolean or special value 'detect')
Default value:(see below)


Whether cookies are secured (Secure attribute of cookies, see section in RFC 6265). If configured with the default value, 'detect', the runtime value is calculated by looking at the protocol that the request came in under. If it is 'https' then this variable is set to true, otherwise it is false.

Default valueEdit

MediaWiki version:
$wgCookieSecure = 'detect';
MediaWiki versions:
1.6 – 1.17
$wgCookieSecure = ($wgProto == 'https');

See alsoEdit