掲示板
Liferay 7: Ho to change the default session timeout
6年前 に Thomas Kellerer によって更新されました。
Liferay 7: Ho to change the default session timeout
Expert 投稿: 490 参加年月日: 08/06/09 最新の投稿
I am trying to increase the session timeout in my Liferay 7 (GA4) installation.
I added
When I check the portal properties in the control panel's "Server Administration" it still shows 30 minutes with a little hint that this property is overwritten:
Is there anything else I need to change to make this work?
I added
session.timeout=240
to my portal-ext.properties, but this is not applied (the file itself is loaded, because other properties are used)When I check the portal properties in the control panel's "Server Administration" it still shows 30 minutes with a little hint that this property is overwritten:
Is there anything else I need to change to make this work?
6年前 に David H Nebinger によって更新されました。
RE: Liferay 7: Ho to change the default session timeout
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
To change session timeout you need to set in portal-ext.properties like you have but you must also edit the web.xml from the ROOT/WEB-INF folder.
Come meet me at Devcon 2017 or 2017 LSNA!
Come meet me at Devcon 2017 or 2017 LSNA!
6年前 に Thomas Kellerer によって更新されました。
RE: Liferay 7: Ho to change the default session timeout
Expert 投稿: 490 参加年月日: 08/06/09 最新の投稿David H Nebinger:
To change session timeout you need to set in portal-ext.properties like you have but you must also edit the web.xml from the ROOT/WEB-INF folder.
Thanks that did the trick.
But what is the use of the property in portal-ext.properties then?
6年前 に Olaf Kock によって更新されました。
RE: Liferay 7: Ho to change the default session timeout
Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿Thomas Kellerer:
Thanks that did the trick.
But what is the use of the property in portal-ext.properties then?
The application server is timing out the session, all by itself. Liferay has this nifty JS running that is warning you about a soon-to-expire session. I'm not sure if it can't read the session timeout from the servlet context, or if it just couldn't do so in a past release of the servlet spec. This is what the property is about: When should Liferay warn you about the upcoming timeout (or extend the session explicitly through JS if you configured it to do so - check the property session.timeout.auto.extend
6年前 に Mayur Patel によって更新されました。
RE: Liferay 7: Ho to change the default session timeout
Expert 投稿: 358 参加年月日: 10/11/17 最新の投稿
Agree ! You need to update the web.xml file inside ROOT to get an effect.
Thanks !
<session-config>
<session-timeout>30</session-timeout>
<cookie-config>
<http-only>true</http-only>
</cookie-config>
</session-config>
Thanks !