Fórum

session

thumbnail
sujay paul, modificado 11 Anos atrás.

session

Regular Member Postagens: 164 Data de Entrada: 28/10/11 Postagens Recentes
Hi,
I have a serious problem.
After login the user want to see how long his session will live ie the time out duration of the user.
First i think i will show it in status bar but in mozila it will not work then i think to create a portlet.
please help.
Thanks in advance.
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: session

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Well, you're able to get the max session timeout from the properties. How about counting down from that.
thumbnail
Sushil Kumar Saini, modificado 11 Anos atrás.

RE: session

Regular Member Postagens: 104 Data de Entrada: 27/07/11 Postagens Recentes
Hi Sujay,

Instead of creating the separate portlet you can show session time out duration by customizing the \html\common\themes\session_timeout.jspf file in liferay. You can override this file using the hook.

You can customize this so that it won't show the extend session button. And you can set the value of the following property equal to session time out value so that, warning message will appear immediately after login into the application.


session.timeout.warning= 30 (set this value equal to session time out value)


Thanks and Regards,
Sushil Saini