Forums

Home » Liferay Portal » English » x. Miscellaneous

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sujay Kumar Paul
session
November 9, 2012 1:07 AM
Answer

Sujay Kumar Paul

Rank: Regular Member

Posts: 165

Join Date: October 28, 2011

Recent Posts

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.
Hitoshi Ozawa
RE: session
November 17, 2012 4:33 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Well, you're able to get the max session timeout from the properties. How about counting down from that.
Sushil Saini
RE: session
November 17, 2012 5:28 AM
Answer

Sushil Saini

Rank: Regular Member

Posts: 102

Join Date: July 27, 2011

Recent Posts

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.

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


Thanks and Regards,
Sushil Saini