MyBB Community Forums

Full Version: Set cookies for many domains
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!
I'm using MyBB v1.8, here is the link: www.forum.district-rp.pl
As you can see, the forum domain is forum.district-rp.pl, if you go to www.district-rp.pl you can see that I've made a small separate webpage.

Now, I want to be able to log in on both forum and the webpage at the same time, but I can't get the cookies to work for all of the domains.

In simple words - I want to make another login page on www.district-rp.pl that would set the cookies for both district-rp.pl and forum.district-rp.pl and I want the login page on forum to set the cookies for both district-rp.pl and forum.district-rp.pl.

I've tried changing the settings to:


Quote:$settings['cookiedomain'] = ".district-rp.pl";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";


Logging in on forum works, but the ACP gives me "Invalid Admin Session" error once I try to log in.
I hope I've explained it well, any help is appreciated!


Regards,
Hazes.