Knowledge Base Article
SuzieH Do you know if the
lithium.anonymous.usersetting.<setting.name>
cookie is still used by the current version of Lithium or if all the setting cookies for anonymous users were moved/migrated to
lia.anon.<setting.name>
cookies?
If both variations are still in use, could you elaborate on the difference and how/when/where they would be created (e.g. what action of an anonymous user would trigger cookie creation)?
It furthermore seems, that certain URL parameters seem to trigger some action that will then create cookie(s), but not always, for example:
https://<community>.tld?profile.language=fr
will create a cookie
lia.anon.profile.language (with value "fr")
if the value in the URL param is changed, the value will change in the cookie as well, BUT ONLY when not logged in / anonymous. We discovered this, because we had very strange behaviour in a multi language community. When users log out (which is when that cookie kicks in) and they have been in another language part of the community before they logged in, they will stay in the section of the community the logged out from, but their UI will change to the language of the community section they have visited before logging in, resulting in a mix of languages.
The question is: Is it a general "feature" that global settings for anonymous users can be set via URL parameters (that will then be saved into cookie values) or is this a bug or some other sort of functionality I'm not aware of?
Also, when does the cookie writing happen, the code handling it seems to run AFTER the page init script and therefore overrides any language specific logic that is performed there.
Third, is there a possibility (probably trough support) to enable/disable that cookie setting logic for certain settings?