I have moved from my development platform to the live server. Therefore the domain names are changed. After moving to the new server I only can login to the default domain. The other languages don't work anymore. If I switch to them or call the url directly there is an access denied. Even the user/1 (administrator) can't login.

Comments

joostvdl’s picture

Category: support » bug

The problem is because of the $cookie_domain parameter from settings.php and having two different domain names. The cookie is used for the FCKEditor Filemanager, but also to not have to login as editor when switching language.

Is there a solution for this problem?

dandurocher’s picture

I am having the same problem here.

Two domains: www.englishdomainname.ca and www.frenchdomainname.ca, both using the same instance of Drupal 6 and the same database.

Page translations are mapped correctly but authentication is not preserved.

Is there any news on this?

Dan

pmusaraj’s picture

Subscribing.

hass’s picture

Category: bug » support
Status: Active » Fixed

Browsers DO NOT share cookies over different domains. This would result in an Cross Site Scripting attack. Fix your settings.php settings.

This have nothing to do with the i18n module at all.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

flashrecovery’s picture

Comment out the $cookie_domain variable in settings.php. Then you will not stay logged in after leaving the domain, but you should be able to log in on any of your domains.

______________________________________________________________________________________
Flash Media Data Recovery in CZ & SK | www.flashrecovery.cz | www.flash-recovery.sk

davemybes’s picture

Just to clarify this for those of you getting here via searching. Create a folder for each domain in the sites folder. Copy the settings.php file from default into each of these folders, and don't change anything (assuming both sites use the exact same database). Make sure the cookie_domain is commented out. Then you will stay logged in when switching domains. Basically, the trick is to have each domain as a folder in sites.

*UPDATE* Oddly this doesn't actually seem to work anymore. Maybe I had logged in manually to both sites and it remembered the two cookies, making it look as if it was working. Sigh...back to the drawing board.

awasson’s picture

Component: Code » Blocks

Is there any movement on this issue? I have a rather large D6 multilingual (french/english) site that has English content on one domain and French on the other. The trouble we are having is that if you are logged in, in english and create some english content you are fine but when you go to translate or create french content you get booted off because you are not logged in (and vice versa).

Thanks,
Andrew