0

I have a multilingual site, that when people switch from one language to another, they are required to log in again.

but if they switch to the language they switched from the user is still logged.

so basically you could log into my site with 2 different accounts.

how is this possible? any ideas whats causing this?

2 Answers 2

1

Check out the issue here for i18n.

It seems that the Single Sign-On module should help you out.

This module enables 'single sign on' between multiple web sites that share common user tables (see http://drupal.org/node/2622#advanced).

Single Sign-On (SSO) means that if you are logged onto the master site, you will automatically be logged into any slave site that you visit.

SSO needs at least two Drupal sites running in order to use it (even if you are using Domain Access module!). One is called Controller, second (third and others) are called Clients. See README for more information about setting this up.

I'd think that as the issue in the queue states the cookies are stored per language. This should be amendable in settings.php.

0

What have you tried to fix this? This certainly isn't the normal behavior. First, I'd do the following:

  1. Try switching languages in a different way (change the language in the user profile vs. using a language switcher block, etc.) Does the problem still occur?
  2. Disable the i18n modules one by one (so long as there are no dependency problems) and test each time. See if one of the modules is causing this.
  3. If you only have two languages, add a third language to the site and see if changing to that language causes the same behavior.

It may go without saying but all of the above tests should be done on a local/test server, not your live site.

3
  • 1
    I think this is normal behaviour if multiple domains are used.
    – Chapabu
    Mar 19, 2012 at 13:43
  • indeed we are using different domains, en.xyz.com and ar.xyz.com, but I don't want that behavior what can I do ?
    – saadlulu
    Mar 19, 2012 at 14:09
  • If you read my answer then you should get your anwser :)
    – Chapabu
    Mar 19, 2012 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.