留言板

Portlets randomly in session expired - IceFaces 1.8.2 - Liferay 5.2.3

Antonio Benvenuto,修改在12 年前。

Portlets randomly in session expired - IceFaces 1.8.2 - Liferay 5.2.3

New Member 帖子: 12 加入日期: 11-6-19 最近的帖子
Hi

I have a big problem with Liferay 5.2.3 and IceFaces 1.8.2:

I have 5 portlets developed with IceFaces 1.8.2 in Liferay. Randomly one or more portlets ho in Session Timeout.

My portletes are deplyed as separate WAR archive and have a PRIVATE SESSION.
IPC was implemented via Liferay.trigger and Liferay.binding ajax function.

In tomcat server.xml i have setted empty-session-path = true

Some suggestions?
thumbnail
David H Nebinger,修改在12 年前。

RE: Portlets randomly in session expired - IceFaces 1.8.2 - Liferay 5.2.3

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
Well, the portal itself will define it's servlet session times in the ROOT/WEB-INF/web.xml, and that (I believe) becomes the basis for the portlet session times.

Even though your portlets are deployed in separate wars, the session times defined in their own web.xml files would only affect any servlets defined within the war, and should not apply to the portlets running within the portal.

Liferay suggests, I believe, to allow for auto-extending sessions through a low timeout value and auto extend parms defined in portal-ext.properties.

Here's an example from 6.0.6 (should be relatively the same in 5.2.3, but YMMV):

#
# 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


This should fix any possible session issues that you're seeing...
Antonio Benvenuto,修改在12 年前。

RE: Portlets randomly in session expired - IceFaces 1.8.2 - Liferay 5.2.3

New Member 帖子: 12 加入日期: 11-6-19 最近的帖子
Hi

Thank you for suggestion,but these liferay settings not solve the problem.

I noticed this problem occurs frequently when I try to switch user.