Closed (fixed)
Project:
Internationalization
Version:
6.x-1.x-dev
Component:
Blocks
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2009 at 10:41 UTC
Updated:
22 May 2012 at 23:17 UTC
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
Comment #1
joostvdl commentedThe 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?
Comment #2
dandurocher commentedI 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
Comment #3
pmusaraj commentedSubscribing.
Comment #4
hass commentedBrowsers 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.
Comment #6
flashrecovery commentedComment 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
Comment #7
davemybes commentedJust 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.
Comment #8
awasson commentedIs 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