This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wanted to know how to set WPML to save the selected language in a cookie so that it remembers the user's selected language even after the browser is closed.
Solution:
We explained that WPML's *Automatic redirect based on Browser language* feature only redirects users based on their browser language for the first visit and cannot force users to stay in a selected language if they choose a different language URL. This is not possible with the default features of WPML.
We suggested that the desired functionality might be achieved through custom coding, but we have not tested this solution. We provided links to resources that could help with custom coding:
- Stack Overflow discussion on WordPress redirect based on cookie presence
- WPML documentation on how to get the current language
We also mentioned that our support policy limits assistance with custom coding, and we directed the client to our support policy for further information: WPML Support Policy.
Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If this is the case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket in our support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/login-page-is-redirecting/
This topic contains 5 replies, has 2 voices.
Last updated by 10 months, 2 weeks ago.
Assisted by: Bigul.