How to change the Session timeout value

Issue

  • How to modify Liferay's default session-timeout of any logged-in user?

Environment

  • Liferay DXP 7.2

Resolution

  • This value is set on the [Application_Server-HOME]/webapps/ROOT/WEB-INF/web.xml file. You can change it:
  • Manually by adjusting the property below, replacing X for the timeout value in minutes.
    <session-timeout>X</session-timeout>
  • Creating an Ext plugin to Modify the web.xml
  • There is a portal property that can be added to the portal-ext.properties but it is always overridden by the value set in web.xml. This property will only take effect if there is no <session-timeout> property on the web.xml file.
     # Specify the number of minutes before a session expires. This value is
    # always overridden by the value set in web.xml.
    #
    # Env: LIFERAY_SESSION_PERIOD_TIMEOUT
    #
    session.timeout=15

Additional information

Was this article helpful?
1 out of 1 found this helpful