Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Opening this issue as a catch all for all the accumulated different login issues.
Log In seems to fail with no error message. Log files show a session was opened for user, however user-access level is still at Guest/Annonymous user level.
Problem environment:
Browser: Firefox
Drupal: 4.8.0 dev
Web server: Apache
Unable to determine your web server type and version. Drupal might not work properly.
PHP: 5.1.5
MySQL database: 4.1.18-standard-log
Configuration file: Protected
Cron maintenance tasks Last run 7 min 47 sec ago
Unicode library: PHP Mbstring Extension
Comment | File | Size | Author |
---|---|---|---|
#7 | sessionname_1.patch | 1.38 KB | JohnAlbin |
Comments
Comment #1
magico CreditAttribution: magico commentedDowngrading to normal, because I'm using the most recent HEAD version and I don't have any login problem.
Also, no one else had this problem.
Comment #2
grymwulf CreditAttribution: grymwulf commentedI've already fixed it by adding 1 bit of custom code to my site settings.php
Comment #3
magico CreditAttribution: magico commentedComment #4
magico CreditAttribution: magico commentedShould be fixed with the following code present in settings.php
Comment #5
(not verified) CreditAttribution: commentedComment #6
JohnAlbinThe code quoted by Magico, does not fix the problem entirely. See http://drupal.org/node/56357 for the proposed solution.
Comment #7
JohnAlbinPlease see http://drupal.org/node/56357#comment-213495 for a full description of the cause of this problem. But, briefly, a session cookie for www.example.com will collide with a session cookie for other.example.com and will result in the problem as described by grymwulf:
This is a PHP Bug (#40806) that affects all versions of Drupal. The supplied patch is a work-around for 5.x. Can easily be back-ported to 4.7.
Comment #8
RobRoy CreditAttribution: RobRoy commentedFYI, // don't re-calculate base_url, if done in settings.php should be
// Don't re-calculate $base_url, if done in settings.php.
And use 2 spaces instead of tabs.
http://drupal.org/node/318
Comment #9
JohnAlbinThanks for the comments, Roy. I will incorporate them into my patch.
I was half-way into splitting http://drupal.org/node/56357 into two issues when I realized they really are the same issue. I'm marking this as a duplicate. Sorry for cluttering the issue queue! :-D