MyBB Community Forums

Full Version: Cookie settings for subdomain.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use subdomains to test my projects and until recently none of them were MyBB and I have had no issues with cookies interfering.

Recently I put up a test forum to try out my plugins on live before I install them on the actual forum (so I can use testers) and I am having a lot of reports with login issues.

I actually had some trouble getting logged in myself. After several changes (and being locked out of Admin CP a couple of times :p ) I came up with this:


Board URL:

http://example.rantcentralforums.com

Cookie Domain:

.example.rantcentralforums.com

Cookie Path:

example/

Cookie Prefix:

EXAMPLE


My testing board is actually stored at example/ when I upload with FTP.

Any help would be greatly appreciated (been trying for 3 weeks Blush )

Edit: To be clear, I have had no issues at all with login on my main forum (nor have my members).
Try looking at this thread and see if you can't spot an example that would help clear up your issue.

http://community.mybb.com/thread-126359.html
Thanks. Blush

Can't believe I didn't find that thread Dodgy
Ok, I posted a rather lengthy post at the end of Matt's
"Login/Logout problems? PLEASE READ" thread, but for for two days, nobody has replied at all.

So I am trying it here now:

I'll try to make it very simple here.

Cookie settings work fine for main domain, for subdomain in the regular
subdomain.parentdomain.com format,

but not for

subdomain.com

which my hosting service offers so your subdomain looks like a main domain and I would be able to run my forum on the same hosting I already pay money for.

I am surprised that no one has mentioned the same problem. I guess nobody is utilizing subdomains to mimic main domains to prevent having to buy several hosting accounts.

Here is the requested information per the announcement.
Detailed description of your problem, including steps to reproduce if necessary
Log-in doesn't work using subdomain only.
try www.thebluebirdcorner.oliverhanisch.com and login with:
test_account
test123

And then try www.bluebirdcorner.com/
Same login
And you'll see that you are always being thrown back to the guest page although it says that you're successfully logged in in the pop up window. So obviously the login cookie process doesn't work when only using the subdomain format.

URL to your forum/URL to specific problematic page
http://thebluebirdcorner.com
Login see above.


New installation or upgrade (from which version of MyBB)?
1.8

Test user account (if it requires additional permissions)

see above

Screenshot or error text, verbatim
not necessary at this point