MyBB Community Forums

Full Version: Login/Logout problems? PLEASE READ
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Try a different browser.
A fellow admin checked the database and somehow fixed my issue. For now.
Hi, I'm having login problems at the front-end. Admin Panel works fine.

What I have tried:

> Settings.php deletion: Did it and it regenerated, same problem.
> Checked cookie settings as specified. Same problem.

Whenever you try to login, it redirects you to member.php with the login form again and again.

I hope anybody can help, this is really frustrating.

*Edit*: Just discovered that this happens only with my account (full admin access)

Thanks.

Site: http://www.gamerzhill.com

If a test account will be needed, please PM me.

Thanks again!
Have you merged from other forum software to MyBB at any point?? Is there any error message when you go to the login form??
No merging, it's a clean installSmile and no error messages. It just redisplays the login form again and again.

Thanks, MattSmile

Any more suggestions?
Sorry for double posting...Anybody can help?

I can't seem to be able to do anything without getting this solved Sad

Thanks.
(2008-12-17, 07:20 PM)MattRogowski Wrote: [ -> ]Recently, there have been a lot of people having problems logging in and/or logging out of their forums. This also includes having to login after every action in the ACP.

Almost every time, this is due to incorrect cookie settings. This is easy to fix, and here's how.

If you are hosting on a localhost (i.e. a test forum on your computer), your cookie domain will usually have to be blank.

If you cannot work out your cookie settings, you can use this cookie generator created by our very own DennisTT and it will attempt to give you the correct settings. It is also recommended that you do not change your cookie settings when you install your forum as they are usually correct in the installer.

You can view your current cookie settings by viewing the source code from a page of your forum. If your cookie settings are wrong, you probably won't be able to change them in the ACP as you may not be able to stay logged in. If this is the case, in order to change them, find a way to open and edit ./inc/settings.php and edit the new values into the file. Then, you MUST go to 'ACP > Configuration > General Configuration' and make the change here too. This is because although editing the file will make you able to log in, the settings aren't updated in the database, and when you next save any settings in the ACP, the old settings will come back.

Also make sure ./inc/settings.php is CHMOD to 666.



99% of the time, this will solve the problem. However, sometimes your browser is set to not accept cookies, and this will cause a problem. Here's how to check your browser is accepting cookies:
  • IE 6/7/8 - Tools > Internet Options > Privacy (tab) > Change setting to 'Accept All Cookies' > Apply > OK.
  • FF3 - Tools > Options > Privacy (tab) > Cookies > Accept cookies from sites > *tick* > Accept third party cookies *tick* > keep until > *they expire* > OK.
  • Opera 9/10 - Tools > Preferences > Advanced (tab) > Cookies > Accept cookies > *tick*.
  • Safari - Edit > Preferences > Security (tab) > Accept cookies > Always > *tick*.
  • Chrome - Spanner symbol > Options > Under the Hood (tab) > Cookie settings > Allow all cookies.


After changing any cookie settings it may be necessary to clear your browser's cookies and then try again.

Still not working??

If you're sure the settings are right (i.e. they show what they should do in the source code of a page), settings.php is CHMOD to 666, and you've cleared your browser's cookies, try this.

Download a copy of ./inc/settings.php, and then delete it from your server. It should regenerate itself, and just in case it doesn't, you can reupload your downloaded copy. When it regenerates like it should (you may need to click around a few times on the forum to get it to regenerate), we'll know that it's a clean, fresh, uncorrupted version, with all the settings fresh from the database, meaning we'll be sure that the file is OK. Then, clear your cookies again, and try to login again.

----------------------------------------

If you are having a problem of no CAPTCHA image showing, please upgrade to the latest version of MyBB as this was fixed in 1.4.5.

If you are getting a white screen when you login and you have recently merged to MyBB, see here: http://community.mybboard.net/thread-420...#pid302288

----------------------------------------

If you are still having trouble, please tell us your URL. If you still have a problem but only say 'I still have a problem' but give no URL, we cannot help you in any way at all.

Also, if you are still having problems logging in or out, please post in this thread rather than making a new one, as there is often 2 or 3 threads on this each day.

Thank you Smile


Hi,
I just installed MyBB 1.4.8 on an intranet, the values you have specified earlier right out of settings.php are as follows

$settings['bburl'] = "http://192.168.1.44:8080/forum";
$settings['cookiedomain'] = ".192.168.1.44:8080";
$settings['cookiepath'] = "/forum/";
$settings['cookieprefix'] = "";

The first setting specified above is the URL used to access the BB. When I use the URL http://192.168.1.44:8080/forum/admin to administrate the BB any page submission sends me to the Admin login page and once I login again I see that none of the changes previously made remain. From the first clarification on this thread I see that the cookie settings are correct, but will it make a difference if it is an intranet address. I would appreciate any help resolving this problem.

Thank you.
Try removing the :8080 from the cookie domain, or leaving the cookie domain blank, see what that does. So either:

$settings['cookiedomain'] = ".192.168.1.44";

or

$settings['cookiedomain'] = "";
(2009-09-03, 12:40 PM)MattRogowski Wrote: [ -> ]Try removing the :8080 from the cookie domain, or leaving the cookie domain blank, see what that does. So either:

$settings['cookiedomain'] = ".192.168.1.44";

or

$settings['cookiedomain'] = "";

Your first suggestion

$settings['cookiedomain'] = ".192.168.1.44";

worked.

Thank you.
Goodo, I'll add that to the first post Smile
http://gazeta.webatu.com/forum/index.php


user:yanivz
pass:235564

the problem is that when i login
i redirect and the lost the
login session.

i found no answer yet

the cockies path are


Cookie Domain: .gazeta.webatu.com
Cookie Path: /forum/

browser cockies are allowed