For quite some time now, we have been getting sporadic reports of mysterious login problems, mostly with Internet Explorer but sometimes with other browsers on other OSes. Read on the full post for updates, last on Feb 9th.
There are a other few known problems with proper fixes, and those include:
- not able to be logged in to multiple sites on the same domain at once. The fix for this is:
ini_set('session.name', 'examplecom')(note that session name can only contain alphanumeric characters.)
- login works, but you still appear to be logged out. The fix for this is to just press reload.
- Users login to www.example.com but don't show as logged in on example.com. The fix for this is to put in an .htaccess redirect so that www.example.com automatically becomes example.com. See Login doesn't work or must be done twice in the Troubleshooting FAQ.
- You are using an older version of Drupal and PHP 5.2. The fix for this is to update to the latest stable version, which has a fix.
- Using the globalredirect module, which had a known bug regarding logins. Fix is simple: update to latest -dev versions, the official release is still broken.
However, if you have tried to log in to just one site, and even a reload fails to show you as logged in, and multiple host names are not the issue, then you are facing this problem. If you are BOTH a) able to reproduce it reliably and b) are comfortable with editing Drupal files, then please comment on this issue and I will try to help you find a solution.
Help by answering the following:
- What specific browser and OS has the problem? (including Major / Minor version)
- Does another browser on the same OS have the same problem?
- Does the same browser on a different OS have the same problem? You might not be able to check this, but for example if you are on Windows, and trying a Linux Live CD is not a problem for you, then please try.
- Does the browser have any toolbars/spyware that could be interfering?
- Does clearing cookies/history/files help?
- Does a browser reinstall help (if the browser is OS-bound then an OS reinstall)?
- What other troubleshooting measures have you tried?
- Do you utilize a firewall? Does switching it off help?
Please note that off-topic or 'me too' posts will be deleted. There have been far too many forum topics and issues on this problem that have become 200+ reply balls of confusion; let's fix this once and for all. Please only comment if you want to help fixing this problem -- please note that I will help you find a solution. I am not affected myself, so I will not spend lots of time to debug, but I will spend enough time to lead you.
Update (Feb 6th): Now it seems we are facing two problems at least, not one. One is users simply unable to log in. The other is that you need to restart the browser in order to be logged in. I would like ask everyone to play with the three
Cache-Control lines in bootstrap.inc, drupal_page_header and drupal_page_cache_header . Comment out all, does this help? If yes, comment out less, and find out which one helped for real.
Update (Feb 9th): I more and more believe that there is no mystery issue at all. This whole cookie business is a hack on a stateless protocol and simply because of the number of Drupal users a very small percentage is biten by various problems. Sometimes more than one problem. It was made worse by the PHP 5.2 fiasco. This issue probably contains all problems and fixes or so I hope. But there is nothing to fix in Drupal. I might be wrong, only time will tell.