Manual:$wgCookiePath

From MediaWiki.org

Jump to: navigation, search
Cookies: $wgCookiePath
Explicitely declared "path" for cookies at the cookie domain
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed Values: relative path
Default Value: '/'

Other settings: Alphabetical | By Function


[edit] Details

If you do not want your login to be persistent across Wiki's running on the same server, and your installations all use the same database, you will need to modify the 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.

session.name provides an alternate solution.

This workaround is not necessary for version 1.6 [1] and greater.