By sbrattla on
Hi,
I've got a site which will run in different languages. The language is determined based on the language domain, and the site will thus exists as "example.com", "example.de", "example.pl", "example.co.uk" and so on. All sites run on the same codebase and database.
I've experimented with $cookie_domain in settings.php, but cookies will not be shared across top level/language domains. I've also had a look at the Bakery module, but that does not work for top level/language domains either.
Does anyone have experience with this, or does anyone know what my options are?
Comments
How is Translation Working?
I do not know the answer to your question, but we can probably investigate some options for you. I'm curious how you can use the same code and database for sites running in different languages. How does the translation take place?
Hi there, I have the exact
Hi there,
I have the exact same question. I am running a single Drupal 7 site that has two language versions. Each language has its own top-level domain name ("englishsiteexample.com" and "frenchsiteexample.com"). The language switching is working fine, but the login/session cookie isn't passed between sites.
I have also spent days looking at $cookie_domain in settings.php, and I have also checked out the Bakery and Domain Access modules. Neither of these modules are able to help me share the cookie between two top level domain names.
From what I have read, this functionality is intentional due to the potential security risks of passing cookie info back and forth between domains. My understanding of this is limited.
I would love to simply rewrite my URLs and consolidate everything to the same domain, but because the domains are translations/language-based, it's really important that they both work in terms of our user experience (it's a bilingual social network/community site aimed and merging languages).
Does anyone in the Drupal community know if the Drupal 7 login cookie can be shared with a second domain name? If so, how to do it?
If I am not able to share cookies between domains at all, then I would also love to know if that's true so I can stop researching this issue and move on!