The cPanel and WHM Version11.32 has a new feature that allows the user to select the locale for their session through a localized login page. There are certain factors like the locale query string parameter, the session_locale cookie, the Accept-Language header, etc. that help in determining the visible locale when one logs into their cPanel, Webmail or WHM account.
The cPanel Service Daemon, better known as cpsrvd service run the following steps when the user logs into their cPanel, Webmail or WHM account for determining which locale to display.
The browser will set the session_locale cookie to the same value based on the locale query string parameter if it is present in the URL.
However, two things should be noted, Firstly, the validity of the session_locale cookie is for one year and secondly, the configured locale of the account gets overridden by the session_locale cookie.
The cpsrvd service will use the first valid locale that corresponded to the value of the Accept-Language header, only if the user’s browser had sent an Accept-Language header. It must be noted, the Accept-Language header is not always active for all browsers.
For a browser and system set-up that does not align with any of the above-mentioned conditions, the login system will opt for the default locale which is the U.S. English locale.