Reported for: WPML Multilingual CMS 3.2.7
You can stumble upon some issues with logging in and out from your website if you are using “a different domain per language” setting. The issues appear when trying to log in using a secondary domain URL.
By default, you are supposed to log in using the main domain only. We implemented a logic where you are redirected to the main domain login form if you try to login using a secondary domain URL. However, we discovered some glitches in our code that we are working on to make this logic free of bugs.
There are two kinds of issues you can experience that appear when you try to log in using a secondary domain URL:
- If you try to log in using a secondary domain URL like http://secondary-domain.com/wp-admin, you will be redirected to the main domain login form, but you will be unable to log in due to a redirection loop.
- If you log into your website using a secondary domain URL like http://secondary-domain.com/wp-login.php, you will be unable to log out from the secondary domain.
Always make sure to log into your website using the main domain URL like http://main-domain.com/wp-admin.
If you cannot log out from the secondary domain, clear your browser’s cache and remove the WPML cookie. You should then be logged out.