フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Sujay Kumar Paul
Session timeout in liferay6.1
2012/10/28 23:58
答え

Sujay Kumar Paul

ランク: Regular Member

投稿: 165

参加年月日: 2011/10/28

最近の投稿

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
2012/10/29 0:14
答え

Jignesh Vachhani

ランク: Liferay Master

投稿: 792

参加年月日: 2008/03/10

最近の投稿

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
2012/10/29 0:24
答え

Sujay Kumar Paul

ランク: Regular Member

投稿: 165

参加年月日: 2011/10/28

最近の投稿

thanks for reply

But how to show it to logged in user ?
Jignesh Vachhani
RE: Session timeout in liferay6.1
2012/10/29 0:30
答え

Jignesh Vachhani

ランク: Liferay Master

投稿: 792

参加年月日: 2008/03/10

最近の投稿

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
2012/10/29 2:10
答え

Sujay Kumar Paul

ランク: Regular Member

投稿: 165

参加年月日: 2011/10/28

最近の投稿

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