RE: Block the GUEST_LANGUAGE_ID cookie

Jamie Sammons, modified 2 Years ago. New Member Post: 1 Join Date: 10/23/19 Recent Posts

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.

thumbnail
Jamie Sammons, modified 2 Years ago. Liferay Master Posts: 764 Join Date: 1/5/10 Recent Posts

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