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.
Well I don't know how it was set up in the first place... did you set it up yourself?? Is the domain a redirect or mapped to the IP or something?? It's not a MyBB thing, it's to do with how the domain/site was set up.
the domain is an http forward, the hosting is on my Synology NAS in my home, also is there a way to add more than one url to the settings.php, sort of a check just incase one fails it can try the other, this would solve a ton of issues if it can work.
(2011-07-01, 10:29 PM)SonicBusa Wrote: [ -> ]the domain is an http forward, the hosting is on my Synology NAS in my home, also is there a way to add more than one url to the settings.php, sort of a check just incase one fails it can try the other, this would solve a ton of issues if it can work.

Nevermind, I switched to Joomla and am super happy, twice the power and half the trouble, i highly reccommend it if your looking for something proffesional.Toungue
I moved my forum from ./mybb to root directory and changed the settings as you said..
But after a day, the login after every action problem occurred again and when I checked the settings.php, the cookie path was /mybb

I don't know how that changed by itself?
just wanted to say that my problem is fixed.
It was bad setting in apache2 Smile
After switching the address of our board, many registered users can login without error message but are actually kept out and remain as guests.

After deleting all cookies and emptying all cache, via various browsers' tools, i can now login from IE, Firefox and Safari.
However, i cannot login from Opera or Chrome -- even after deleting and regenerating ./inc/settings.php, re-deleting cookies and re-emptying cache, and restarting the computer! (When i do login correctly, from IE, Firefox or Safari, i have no trouble with logout.)

The board URL was http://www.underhill.ca/copan_support/ (on our server) but after having changed our web host for www.underhill.ca (to a 3rd party server) the board URL is now http://96.49.224.243/copan_support/ (on our server).

We also have a permanent redirect of support.underhill.ca to http://96.49.224.243/copan_support/ since we've told users that the new URL is http://support.underhill.ca

General Configuration

Cookie Domain: .96.49.224.243
Cookie Path: /copan_support/

All of the required files and directories have the proper CHMOD settings.

Test User
name: mybb
pswd: mybbmybb

MyBB Version: 1.6.3
PHP Version: 5.3.2
SQL Engine: MySQL 5.0.90
Server Load: 0.3975

I'm not using any add-ons or integration software.

Are there any issues with using numerical address instead of named? Or with having a redirect? Or with Opera or Chrome?

Thanks for any help.



Here's an update (to yesterday's post) that leads me to conclude that the problem is not related to cookies/cache:

I have exactly the same problems with login from my home computer and yet
  • i had no problem logging in via FF -- even though i must have still had cookies/cache related to that browser
  • i could not login from Opera/Chrome -- even though i had never tried to login from them before
(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.

Also, if you have a port at the end of your board URL (for example, if your board URL is http://123.45.67.89:1234) set your cookie domain to .123.45.67.89 - basically remove the :xxxx from the end. If you have a directory at the end as well as a port (for example, if your board URL is http://123.45.67.89:1234/forum) set your cookie domain to .123.45.67.89 as above, and set your cookie path to /forum/ - the port number isn't needed anywhere.

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


We still have a problem http://www.beachlister.com/pf
and http://www.beachlister.com/pf/admin
We have done three complete installations and have not been able to post one forum due to the user name and pass word logon problems.
(2010-08-03, 09:16 AM)Kervelling Wrote: [ -> ]Right, I just now downloaded mybb 1.6

I'm using WAMPserver, which is running Apache2.2.11, PHP5.3.1 and MySQL 5.1.36

I've gone through the documentation, did all things mentioned, like renaming the settings file, modifying security settings and such.

The install worked and I can now enter my admin panel.

The url is: http://localhost/mybb16/

However, during install, I set cookie domain to localhost. I later found that I should have left it blank.

I went to the settings.php file and edited it manually, so now it has this:

$settings['cookiedomain'] = "";
$settings['cookiepath'] = "/mybb16/";
$settings['cookieprefix'] = "";


But the admin panel still won't change. Everytime I edit something and click "save changes", it isn't saved, and I have to enter my credentials for each and every page load there is.

I have the same problem on my third install but it will not even take my User Name and Password.
I cant even open the CP or UP
I have reinstalled 3 times and I still have to log in to Admin everytime I do anything.
I try to make the changes but it will not save them.

I really like this software becuse I want to use it for a photo form, Community Club, Sales Org. and several other groups.

But I guess I will have to go to pHPBB or SMBB.

I have to give a decision Friday to the Comunity Club.

Jimmy D
http://www.beachlister.com/pf
was any able to help me out.I can't stay logged in.I checked the cookies and the path and chmod to 66 and still nothing.
(2011-07-04, 04:40 PM)SonicBusa Wrote: [ -> ]
(2011-07-01, 10:29 PM)SonicBusa Wrote: [ -> ]the domain is an http forward, the hosting is on my Synology NAS in my home, also is there a way to add more than one url to the settings.php, sort of a check just incase one fails it can try the other, this would solve a ton of issues if it can work.

Nevermind, I switched to Joomla and am super happy, twice the power and half the trouble, i highly reccommend it if your looking for something proffesional.Toungue

So you changed software because a redirect that you set up was meaning your site loaded in an iframe which was screwing things up?? OK then. In future, maybe just try setting up a redirect that doesn't end up using iframes...

(2011-07-04, 06:09 PM)Thruster Wrote: [ -> ]I moved my forum from ./mybb to root directory and changed the settings as you said..
But after a day, the login after every action problem occurred again and when I checked the settings.php, the cookie path was /mybb

I don't know how that changed by itself?

You've been denied support here so we cannot help you. But if this is happening then you've just not followed the instructions.

(2011-07-06, 10:28 PM)Martin F Wrote: [ -> ]After switching the address of our board, many registered users can login without error message but are actually kept out and remain as guests.

...

If you really need your URL to be an IP, then try leaving the cookie domain blank.

(2011-07-07, 04:52 PM)jandg Wrote: [ -> ]We still have a problem http://www.beachlister.com/pf
and http://www.beachlister.com/pf/admin
We have done three complete installations and have not been able to post one forum due to the user name and pass word logon problems.

I have the same problem on my third install but it will not even take my User Name and Password.
I cant even open the CP or UP
I have reinstalled 3 times and I still have to log in to Admin everytime I do anything.
I try to make the changes but it will not save them.

I really like this software becuse I want to use it for a photo form, Community Club, Sales Org. and several other groups.

But I guess I will have to go to pHPBB or SMBB.

I have to give a decision Friday to the Comunity Club.

Jimmy D
http://www.beachlister.com/pf

Your settings aren't even close to being right. How you got these settings is beyond me.

Your cookie path is http://www.beachlister.com/pf/ and your cookie prefix is fc/
Your cookie path should be /pf/ and you shouldn't even have a cookie prefix.

I've no idea where you got these settings from, you definitely didn't follow the instructions if you got that cookie path, the installer definitely wouldn't have set it as that, and the installer doesn't even set a cookie prefix so I'm not sure why you set one. If you want to change software because you've changed your settings, changed them incorrectly, and can't follow the instructions on how to correct them, then that's your choice. The installer will give you the right settings, just don't change them, and you won't have any problems. Changing the settings to something incorrect and then saying you're going to change software just makes zero sense.

(2011-07-08, 12:49 AM)Allan Wrote: [ -> ]was any able to help me out.I can't stay logged in.I checked the cookies and the path and chmod to 66 and still nothing.

Can we have a test account??
Deleting ./inc/settings.php again, setting Cookie Domain to blank, and deleting cookies again -- finally did the trick -- for all browsers! Thanks Smile