$wgCookieDomain setting has no effect

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Hello! I appreciate this is a really open question - is there anything I can do to help whittle down the cause? The inability to correctly set my cookie domain iss causing issues with my SSO solution.

37.1.177.15416:24, 16 August 2012

First of all do you have any authentication extensions installed. If they handle the cookies themselves, they may override MW's settings for the cookie domain.

>MediaWiki defaults to 'practicalplants.local'.

MediaWiki should default to not setting a cookie domain whatsoever.


You're sure you are setting $wgCookieDomain at the very bottom of LocalSettings.php?

What does the set-cookie http header that MediaWiki sends look like?

Bawolff (talk)12:45, 17 August 2012

as Bawolff mentioned:
Make sure you are setting $wgCookieDomain at the very bottom of LocalSettings.php !!

solved the problem for me.

62.178.87.22622:10, 9 September 2012

sorry, did not! you cannot login at en.mywiki.org and use the cookie for de.mywiki.org. COOKIES are domain related.

62.178.87.22619:14, 10 September 2012

Note, cookies are specific to the wiki in question (specificly its linked to the database name - so you can have multiple wikis on same domain) - this is separate from the cookie domain.

Bawolff (talk)17:05, 13 September 2012