留言板

[Liferay 5.3.2 & IceFaces 1.8.2] Session already invalidated

Andrea Nobili,修改在12 年前。

[Liferay 5.3.2 & IceFaces 1.8.2] Session already invalidated

New Member 帖子: 9 加入日期: 11-3-7 最近的帖子
HI all
I'm developing an icefaces portal application on Liferay 5.3.2.
After few minutes of idle time console show me this error:
"java.lang.IllegalStateException: getAttributesNames: session already invalidated"

So I need to restart browser. I have setted "empty_session_path = true" in tomcat server.xml as suggested in many post but this workarounf doesn't help me.

Is there a way to solve this problem?

Thank You
thumbnail
David H Nebinger,修改在12 年前。

RE: [Liferay 5.3.2 & IceFaces 1.8.2] Session already invalidated

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Yeah, you need to get into the session timeout settings within your portlet-ext.properties file...

Basically I think the recommendation is to use a low session timeout (like 5 minutes) combined with the auto session extension settings.

The auto extend will keep the session alive while the browser is open. The low session timeout will cause the session to be cleaned up sooner when the user's browser has either closed or navigated away from Liferay.

These are the values that I use:


#
# Session settings
#
session.timeout=5
session.timeout.warning=1
session.timeout.auto.extend=true
session.timeout.redirect.on.expire=false
session.enable.persistent.cookies=true
# Disable for seo usage since we will use cookies.
session.enable.url.with.session.id=false