I have one multisite craft installation, where the different languages for the sites use different domains:

en -> domain.com

de -> otherdomain.com ..

Users can log in via frontend. Now if users log in and change the language, they get logged out.

i cannot use the defaultCookieDomain setting, because i dont have the same root domain.

According to this post, due to cross-domain restrictions, sites not sharing a root domain are not allowed to receive/read each other's cookies.

Is there another way of sharing the user's CraftSessionId cookie and thus preventing the user being logged out after changing the language?


Your Answer

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