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 minutesFILE: 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