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 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 commentedI've already fixed it by adding 1 bit of custom code to my site settings.php
/** * PHP settings: * * To see what PHP settings are possible, including whether they can * be set at runtime (ie., when ini_set() occurs), read the PHP * documentation at http://www.php.net/manual/en/ini.php#ini.list * and take a look at the .htaccess file to see which non-runtime * settings are used there. Settings defined here should not be * duplicated there so as to avoid conflict issues. */ ini_set('arg_separator.output', '&'); ini_set('magic_quotes_runtime', 0); ini_set('magic_quotes_sybase', 0); ini_set('session.cookie_domain', '.grymwulf.com'); ini_set('session.cache_expire', 200000); ini_set('session.cache_limiter', 'none'); ini_set('session.cookie_lifetime', 2000000); ini_set('session.gc_maxlifetime', 200000); ini_set('session.save_handler', 'user'); ini_set('session.use_only_cookies', 1); ini_set('session.use_trans_sid', 0); ini_set('url_rewriter.tags', ''); This bug exists in 4.7.3... and the behaviour was the same as the previous version bug report. I'm returning this to bug report as I don't currently need support concerning this incident.Comment #3
magico commentedComment #4
magico commentedShould be fixed with the following code present in settings.php
Comment #5
(not verified) 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 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