Manual:$wgCookiePath

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

Other languages:
English • ‎español • ‎日本語 • ‎polski • ‎português
Cookies: $wgCookiePath
Explicitly declared "path" for cookies at the cookie domain
導入されたバージョン: pre 1.1.0
除去されたバージョン: 使用中
可能な値: 相対パス
既定値: '/'
他の設定: アルファベット順 | 機能順

詳細

If you do not want your login to be persistent across Wikis running on the same server, and your installations all use the same database, you will need to modify the LocalSettings.phpManual:LocalSettings.php file

$wgCookiePath = "/directory";

Where directory is the directory for that MediaWiki installation relative to the DOCUMENT_ROOT.

This resolves issues where a user is occasionally prompted to log in when viewing a different installation, even though they logged in earlier and asked to have their password remembered.

$wgSessionNameManual:$wgSessionName and $wgCookiePrefixManual:$wgCookiePrefix provide alternate solutions.