Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.X EE, 7.0.X EE, Master
-
7.0.x, 6.2.x
-
Committed
-
3
-
Performance
Description
If you disable cookies in your browser and access to any Liferay page, without sign in (in fact, you can not, because you need enable cookies for that), you'll see how every single second a POST to /c/portal/extend_session is made.
Steps to reproduce
1.- Disable cookies in your browser
2.- Access to any page in your Liferay Server
3.- Open network tab in browser console
Expected result
You can see normal traffic
Actual result
Every second there is a request to /c/portal/extend_session.
Root cause
This is happening because we use the cookie LFR_SESSION_STATE_
to store the timestamp of the moment when the session started, and later (every second according to the interval we defined in session.js) we use that value to figure out how long the session has been active. If we can not get the value, we set default value: 0, and that provokes the recurrent calls to extend_session until you close the browser.