Manuaali:$wgCookieDomain

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgCookieDomain and the translation is 29% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎русский • ‎العربية • ‎ไทย • ‎中文 • ‎日本語
Cookies: $wgCookieDomain
Explicit domain for login cookies.
Introduced in version:pre 1.1.0
Removed in version:still in use
Allowed values:(string)
Default value:''
Other settings: Alphabetical | By function

Yksityiskohdat

Set to an explicit domain on the login cookies, e.g. thissubdomain.mydomain.org or .mydomain.org for all your subdomains.

By default this isn't set, so php's setcookie function will just set a cookie on the current domain. This is a bad thing if e.g. your site is available from both www.example.com and example.com, since users that log into the former will be logged out as soon as they visit the latter.