Open main menu
This page is a translated version of the page Manual:$wgCookieDomain and the translation is 57% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎magyar • ‎polski • ‎русский • ‎中文 • ‎日本語
Cookies: $wgCookieDomain
Explicit domain for login cookies.
引进版本:pre 1.1.0


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

如果默认的Cookie作用域没有设置,那么PHP中的setcookie函数会将Cookie的作用域设为当前域。 This is a bad thing if e.g. your site is available from both and, since users that log into the former will be logged out as soon as they visit the latter.