[Mediawiki-l] Conflicting PHPSESSID cookies when accessing two wikis on the same site

Brion Vibber brion at pobox.com
Mon Nov 8 08:34:20 UTC 2004


On Nov 8, 2004, at 12:11 AM, Terry Jones wrote:
> I had a quick look at my browser's cookies and it seems like the right
> thing is being done for the name and password cookies (these both
> contain the wiki name, making them wiki specific). But there is a
> single PHPSESSID cookie which I guess is the culprit. I.e., if I look
> at wiki A and then go to wiki B and log in, I get a new PHPSESSID
> cookie. This, I am guessing, is then invalid when I return to wiki A.
>
> Is that likely to be what's causing my problem? If so, what can I do
> about it?

You can change the cookie name used by PHP's sessions in php.ini, the 
Apache configuration, perhaps the .htaccess file, or at runtime. For 
instance put something like this in LocalSettings.php:
ini_set("session.name", "{$wgSitename}Session" );

-- brion vibber (brion @ pobox.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20041108/aa7c5500/attachment.pgp 


More information about the MediaWiki-l mailing list