Session.name

From MediaWiki.org
Jump to: navigation, search
MediaWiki version: 1.5 or older

When hosting multiple 1.5 installations on the same domain name, there are issues with cookies. The solution is simple.

Below this line:

$wgSitename         = "Your Wiki Name";

add the line:

ini_set("session.name", "{$wgSitename}Session");

So that it looks like:

$wgSitename         = "Your Wiki Name";
ini_set("session.name", "{$wgSitename}Session");

$wgCookiePath provides an alternate solution.

MediaWiki version: 1.6 or newer

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

Language: English  • Polski
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox