Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Sujay Kumar Paul
Session timeout in liferay6.1
October 28, 2012 11:58 PM
Answer

Sujay Kumar Paul

Rank: Regular Member

Posts: 165

Join Date: October 28, 2011

Recent Posts

Hi
I want to show the session time after login.
I had add this 2 lines in portal-ext.properties
session.timeout=4
session.timeout.warning=4
but its not showing
Please help.
Jignesh Vachhani
RE: Session timeout in liferay6.1
October 29, 2012 12:14 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 801

Join Date: March 10, 2008

Recent Posts

You can modify session timeout option from web.xml of tomcat.
Change the time setting in below tag:
<session-config> <session-timeout>30</session-timeout> </session-config>
Sujay Kumar Paul
RE: Session timeout in liferay6.1
October 29, 2012 12:24 AM
Answer

Sujay Kumar Paul

Rank: Regular Member

Posts: 165

Join Date: October 28, 2011

Recent Posts

thanks for reply

But how to show it to logged in user ?
Jignesh Vachhani
RE: Session timeout in liferay6.1
October 29, 2012 12:30 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 801

Join Date: March 10, 2008

Recent Posts

sujay paul:
thanks for reply

But how to show it to logged in user ?

Ohh sorry that was my misunderstanding.

Actually to showing only timeout duration, you can read property value from portal-ext.properties file.
session.timeout

try to get it using PropsUtil.get("session.timeout") ;
Sujay Kumar Paul
RE: Session timeout in liferay6.1
October 29, 2012 2:10 AM
Answer

Sujay Kumar Paul

Rank: Regular Member

Posts: 165

Join Date: October 28, 2011

Recent Posts

Is it possible to show the time out duration in status bar?

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!