Legacy Knowledge Base
Published Jul. 2, 2025

Session Timeout value is overridden during fix pack upgrade

Written By

József Géczi

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • During installation of a fix pack, the value of <session-timeout> is reset to default within web.xml. Is the value of session timeout can be changed 'permanently'?

Environment

  • DXP 7.2

Resolution

Currently, there is no out-of-the-box option to achieve this on DXP - the web.xml is required to be maintained after the fix pack installation process.

However, our customers shall have the best chances achieving this by developing an ext-plugin for such task, as also written in the following article 'How to configure user session timeout in Liferay Portal':

Option 2 - Over-ride session timeout value in web.xml using portal EXT plugin

NOTE: This approach may not work due to the Liferay Portal patching process (TBC).

Update session timeout value in <session-timeout> element
e.g. 8 hours = 480 minutes

FILE: EXT_PLUGIN/.../WEB-INF/web.xml

<session-config>
<session-timeout>480</session-timeout>
</session-config>

Option 3 - Remove session timeout value in web.xml using portal EXT plugin

NOTE: This approach may not work due to the Liferay Portal patching process (TBC).

Remove session timeout value and <session-timeout> element from parent <session-config> element

<session-config>
</session-config>

NOTE: This approach will ensure the value defined in portal-ext.properties is retained.


Please note: none of the above described methods has been thoroughly tested officially and considered as custom development. Therefore, any of these changes may be applied at the developer's own discretion.

Actually, there is a feature request already present in our records about the desired functionality: LPS-67421

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base