Change the GUEST_LANGUAGE_ID cookie to expire Null
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- The Guest language ID cookie in Liferay has a one-year expiration, whereas the undefined cookie in the F5 balancer caused the conflict. Is there a way to modify the Cookie's duration in Liferay?
Resolution
-
The property session.enable.persistent.cookies=false will make the portal stop adding and checking the persistent cookies (CookieKeys.java), but it will not delete or expire the cookies that already exist. For users that already have the cookie stored in their browser, they will need to clear those cookies via the browser. Aside from this property, Liferay doesn't have anything on the portal to control the cookie GUEST_LANGUAGE_ID out-of-the-box.
did-this-article-resolve-your-issue