MyBB Community Forums

Full Version: Login doesn't work on domain, but works on IP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I set up the forum I didn't have a domain yet, and I set it up while using an IP (http://185.38.149.155/~shipmate/myBB/). If I log in through the forum with the domain being the IP, it works, but if I log in through the domain which leads to exactly the same page (http://shipmateserver.xyz), after you enter the details and enter it takes you back to the homepage but you aren't logged in. I have no idea whats caused this, does anyone else know how to fix it?
Your cookie settings are incorrect.

If you can log in to the ACP, go to ACP > Configuration > General Configuration, set your cookie domain to forum.shipmateserver.xyz and your cookie path to /

If you can't log in to the ACP, edit these values in ./inc/settings.php, which should enable you to log in, but you must then go and change them in the ACP again afterwards.
Edit: delayed response

cookie domain & cookie path should to be corrected first in ~/inc/settings.php file
and then at Site Details of forum admin panel (Configuration section - Settings)

more details => faq: login
see also cookie related guidance
thanks guys!
As stated above you'll need to change the following:
* The board url
* The site url
* And the cookie domain.

You may do that at: [YourSiteURLHere]/[YourAdminDirHere]/index.php?module=config-settings&action=change&gid=2