Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
user system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2006 at 02:43 UTC
Updated:
21 Mar 2007 at 05:31 UTC
Jump to comment: Most recent file
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