Recognize MyBB login with or without "www" in the URL
Posted by Vincent Isles at Monday, March 31, 2008Situation: 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 = /
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.
Labels: cookie settings in mybb, mybb
This post has
no comment.
Add your own!
Subscribe to:
Post Comments (Atom)

