Download & Extend

Cannot login properly with firefox with multidomains

Project:Drupal core
Version:5.1
Component:base system
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I tested this on linux with firefox 2.0.0 and with php 4.4.4 at the server. Konqueror does not have this problem. I do not know whether it is a firefox or drupal bug.

I created a directory "/sites/domain.com" for the primary site. Then I created the test site "/sites/test.domain.com" at test.domain.com. Using firefox to login the primary site first is fine. Then, to login the test site, the page refreshes but the navigation menu does not change to reflect the login. No error is displayed and the log records the login as successful. The same happens if I login the domains in different order.

Clearing the cookies for the domains involved solves the problem. But it happens again when I login one domain then login another.

Comments

#1

I can verify this is an issue. Having the same experience here.

#2

confirmed

Drupal 5.1, PHP 4.4.4

#3

I suspect that adding ini_set('session.name', 'domaincom') to your main site's settings.php and ini_set('session.name', testdomaincom') to your subdomain's settings.php will solve this. (note that session name can only contain alphanumeric characters.)

Let me know if that works, and we can close this issue.

#4

Yes, this solves the issue. Thanks.

#5

Category:bug report» support request
Status:active» fixed

#6

Status:fixed» closed (fixed)