Issue
- The user session expires in about 10-15 minutes inactivity, even if session.timeout.auto.extend is set to true, and session.timeout and session.timeout.auto.extend.offset are all configured. The issue only occurs when using Google Chrome.
Environment
- DXP 7.3
Resolution
- The issue happens when the setInterval in Liferay's session.js file dramatically slows down. Since the interval is not checked in a period of a minute, by the time session would be extended, it is already expired in the server. The session expiration happens only with Google Chrome and typically when the session.timeout is low (e.g. 2 minutes) and session.timeout.auto.extend.offset is less than 60.
- To maintain the session please follow the below workaround: increase the session.timeout.auto.extend.offset to above 60 (one minute) and the session.timeout above 2. For example, add these values to your portal-ext.properties file:
session.timeout=3
session.timeout.auto.extend=true
session.timeout.auto.extend.offset=70
Additional Information
-
This behavior was introduced in Chrome 88 (released in January '21) when certain conditions are found. For details please see this external article: Chrome 88+ Will Throttle Timers to 1 Minute in Certain Conditions