This question seems to come up once in a while, but I have tried everything I could find here, and I still can't seem to make it work.

I am developing a custom theme for our website, and I needed to log out to check on the look of the site for an anonymous user.

Once I logged out, I could not log back in. I tried several admin accounts, on several computers, and none of them worked.

Strangely enough, when I visit the page from my laptop, Firefox loaded with the page already logged into the admin user. I can use this to administer the site, but I can't seem to change anything that makes it so the other accounts work, or other computers for that matter... In addition, I don't want to try to log out from my laptop for fear of not being able to get back in.

I know that this can be a cookie issue with the www in the URL and what not, I have tried to log in from various machines, with clear caches, with no luck.

Another strange part of this puzzle is the fact that when I attempt to log in as a user from another location, the log in appears to fail, but the number of logged in authenticated users goes up on the tab of the admin toolbar of my laptop. It's like the database thinks they are logged in, but they can't get to the admin side of the page.

I had this problem happen about a week ago, but I was able to log in with my laptop and once I did, everything started working normally again...

Any suggestions you folks might have for how I can get this fixed permanently would be greatly appreciated.

Thanks!

Comments

mauryg’s picture

Seem to have the same problem. Just started today. Still able to access site with previously logged in browsers. Watchdog reports that a session is opened for the user, but the webpage simply refreshes with no user logged in. Tried multiple browsers. Another user reported this problem today. Running D6.19 with core login. No new modules added recently. Deleting cookies and browsing history does not help. Any thoughts?

Problem SOLVED**
I had recently upgraded from D6.16 to D6.19. After much searching found that there was a undocumented change in D6.17 which required that the cookie domain in settings.php be CHANGED from 'example.com' to '.example.com' (note preceding '.'). Making that change solved the problem of login. Hope this helps someone else.