Issue
- What are all the cookies that could be found in a Liferay Portal, and what are they used for?
- Is it possible to safely remove these cookies? If so, can it be done out of the box?
Environment
- DXP 7.0 or higher
Resolution
Liferay Cookies:
-
LFR_SESSION_STATE_userid - Technical session cookie (expires once the session ends). It belongs to Liferay. It contains the timestamp when the user's session started.
-
JSESSIONID - Technical session cookie (expires once the session ends). It belongs to Liferay. It is used by sites written in JSP to maintain an anonymous user session by the server.
-
GUEST_LANGUAGE_ID - Functional personalization cookie (duration 1 year). It belongs to Liferay. It remembers the user's language preference.
- COOKIE_SUPPORT - Technical cookie (duration 1 year). It belongs to Liferay. It is used to know if the user admits cookies.
Third party cookies:
-
_gcl_au - Advertising cookie, third party (duration 1 year). It is used by Google AdSense to experiment with the efficiency of advertising on different websites using its services.
-
_fbp - Advertising cookie, third party (duration 3 months). It is used by Facebook to deliver a series of advertising products, such as real-time bids from third-party advertisers.
-
_gid - Advertising cookie, third party (duration 1 day). It is associated with Google Universal Analytics. It is used to distinguish users and it stores and updates a unique value for each page visited to limit the number of requests to this service.
- _ga - Behavioral Analytics Cookie, third party (duration 2 years). It is used to distinguish users and help Google Universal Analytics to limit the number of requests to this service.
- _gat - Behavioral Analytics Cookie, third party (duration 1 minute). It is used to throttle request rate. If Google Analytics is deployed via Google Tag Manager, this cookie will be named _dc_gtm_<property- id>.
Note that all third parties cookies like _gcl_au (Google AdSense), _fbp (Facebook), _ga, _gid and _gat (Google Universal Analytics) are generated only if their related services get activated inside the portal.
What happens if these cookies are removed:
- Removing these cookies out of the box is not possible as we don't have control over third party ones like _gcl_au, _fbp , _ga, _gid or the necessary ones to create a session successfully as JSESSIONID and LFR_SESSION_STATE_20120.
- If these cookies are removed by a custom development, then the user will lose the functionality each cookie provides.
Additional Information
- Liferay Product Cookies
- This is how you could activate this third services in your Liferay portal:
- Google AdSense - Google AdWords in liferay
- Facebook - Integrating with Facebook
- Google Analytics - Advanced Site Settings # Analytics
- Other cookies related help articles: