Thread:Project:Support desk/Wikifamily and Shared database setup/reply (7)

Don't set $wgSharedPrefix if you don't have it.

Try setting $wgCookiePrefix with the same value on all of them if the previous setting does not work.

Well, $wgCookieDomain isn't good here, because it should be set to "mainwiki.com"