手册:$wgCookieSecure

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgCookieSecure and the translation is 40% complete.
Other languages:
English • ‎magyar • ‎polski • ‎中文 • ‎日本語
Cookie: $wgCookieSecure
Whether cookies are secured.
引进版本:1.6.0 (r12253)
移除版本:仍在使用
允许的值:(boolean or special value 'detect')
默认值:(参见下方)

细节

Whether cookies are secured (Secure attribute of cookies, see section 4.1.2.5 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 value

MediaWiki版本: 1.18
$wgCookieSecure = 'detect';
MediaWiki版本: 1.6 – 1.17
$wgCookieSecure = ($wgProto == 'https');

参见