Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Block the GUEST_LANGUAGE_ID cookie
Hello,
We must block all cookies until user consent is obtained. The GUEST_LANGUAGE_ID cookie is deposited by the server. Can you tell us how to intercept it so that it is deposited only according to our conditions ?
We are using Liferay Portal Enterprise Edition 6.2.10 EE GA1.
Thank you.
Hi,
The GUEST_LANGUAGE_ID cookie is added here: https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/com/liferay/portal/language/LanguageImpl.java#L752-L765. You can modify the logic there.
Regards,
Zsigmond
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™