MyBB Community Forums

Full Version: Login issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Folks,

I hope you all can help me.  For some time now, I've had trouble on my forum.  Logins used to go fine, then about 6 months ago nobody was able to login by clicking login at the top the login window pops up and you can enter your UID & PWD but when you hit enter, it just goes back to the main screen and still says "hello guest".  The only way to login is to right click on the login and say "open in new tab/window" (or just enter the link directly) and put it in that way.  It works fine if you do it like that.  It is really frustrating and would like to know if anybody has seen this and how does one fix it.  I'm very "green" at this so any help given to me would be as if you were telling a total n00b.  I have a "support account" all made up for somebody to try if they'd like to see it first hand.  The UID is MYBBHelper & the PWD is (resolved).  I am running 1.8.9 (hoped maybe it might fix this issue). The site is http://www.thercgarage.net/forums/

thanks,
-chris
The issue is that your Board URL has www. in it, but you redirect away from this to just thercgarage.net, presumably in your .htaccess. This causes the login problem because the login form is being submitted to www.thercgarage.net, which redirects to thercgarage.net, which then loses the POST data (username and password), so does nothing. Logging in here though doesn't have this issue.

So, what you need to do is remove the www. from your Board URL. You should be able to do this in the ACP as the login for this should still work.
As a technical explanation for why the quick login breaks, but the full login page works... this is the form action for the quick login:

<form method="post" action="http://www.thercgarage.net/forums/member.php">

and this is the form action for the full login page:

<form action="member.php" method="post">

The reason the quick login breaks is because it's submitting to the www. URL, which then gets redirected, whereas the full login form just submits "directly" to the file, so uses the same full URL you're already on (no www.).
Thank you, Matt. That was fixed everything and your explanation was clear. Makes perfect sense too. I'm annoyed I never caught on to it, but I've been staring at it for so long.

-c
No worries Smile