All users of my site are unable to login. Drupal has been running fine on my freeBSD/Apache hosted site for some time. When ever someone logs in correctly it imeaditly redirects them back to the orginating page without logging them in. The watchdog shows the user was sucessfully logged in. If incorrect login info is used it redirects to the normal login error page. This problem extends to all known users using differnet browers and OSs. Normal site funcnality (ie node viewing, searching, books, account creation, ect) is present but only in anonymous.

Some reasearch I'v done....

Can't Log-In, How To Troubleshoot?
Simler problems but my search does work and iv tripple checked my $base_url.

Can't login

Same end symptoms as me. Something in the database thats causing problems?

Problem with login (doesn't seem to 'take')
Sounds exactly like the problem they were having. Execpt my settings have been working up untill a week ago. Its not my setup. I'v tried on other people's comptuers and all the people who use my site have been unable to access it.

"headers already sent" error
After a bit of hacking I did get this. I veaugly recall something simler happening before and something else fixing it.

Truncated fields / unable to login / php 4.2.3 bug
It can't be this because it was working before and im using a newer version of php.

Comments

gpmidi’s picture

After poking around in the code a little and inserting/removing echo and $output .= lines here and there it seems like the global $user is getting set to "" somewhere along the line.

MeltMan@MeltMan.com’s picture

I'm having this exact same problem... It just suddenly started today.. Did you ever find a solution?

killes@www.drop.org’s picture

We need info on the list of installed contrib modules (with versions). Please report back and set to active again.

Anonymous’s picture

Title: All Users Unable To Login » Login Problems - Check This

Yesterday I moved my (working) Drupal site to a new server and everything went fine until I tried to login. No errors were reported, however whenever I clicked the button to login, the login page would just reload. After spending a good 3-4 hours going over everything and reinstalling (and hacking apart just about everything!) I realised the problem was due to my client-side firewall which was blocking cookies being sent from Drupal.

This is very obvious but easily overlooked. If you're experiencing similiar problem with login make sure your Drupal is able to send cookies to your computer. Check your browser settings and/or firewall if you have one. Unless Drupal is able to start a cookie session you will not be able to login!

Suggested feature request: Drupal should output an error message saying "you must have cookies enabled to login" and also, it would be useful to mention enabling cookies in the e-mail sent to new users when they register. Why is Drupal using user sessions anyway and not saving sessions in server-side files?

Paul
amorphix.net

alexandreracine’s picture

Version: » 4.5.0
Status: Postponed » Closed (fixed)

Too old.

Was for version 4.4.

Closing.