If you're new here and like what you read, please subscribe to my blog feed or sign up for free email updates. Thanks for visiting!
Enter your email address to subscribe:

Situation: Your MyBB site can be accessed either as example.com or www.example.com. However, when users login from example.com, they are not logged in when they access www.example.com, and vice-versa.

I realized that this has something to do with MyBB's cookie settings.

If your forum URL is http://www.example.com/, the forum can be accessed as http://example.com, and you would like to login to work whether the user logged at the address with the "www" or at the address without the "www", then you have to change your board settings for the following:

  • Cookie Domain = .example.com
  • Cookie Path = /
If your forum is located at http://www.example.com/forum/, the cookie path should be /forum/

In order to change this, log in to your Admin CP and go to Board Settings > Change > General Configuration where you can see the two settings.

This post has no comment. Add your own!