Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Sujay Kumar Paul
Session timeout in liferay6.1
28. Oktober 2012 23:58
Antwort

Sujay Kumar Paul

Rang: Regular Member

Nachrichten: 165

Eintrittsdatum: 28. Oktober 2011

Neue Beiträge

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
29. Oktober 2012 00:14
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 780

Eintrittsdatum: 10. März 2008

Neue Beiträge

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
29. Oktober 2012 00:24
Antwort

Sujay Kumar Paul

Rang: Regular Member

Nachrichten: 165

Eintrittsdatum: 28. Oktober 2011

Neue Beiträge

thanks for reply

But how to show it to logged in user ?
Jignesh Vachhani
RE: Session timeout in liferay6.1
29. Oktober 2012 00:30
Antwort

Jignesh Vachhani

Rang: Liferay Master

Nachrichten: 780

Eintrittsdatum: 10. März 2008

Neue Beiträge

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
29. Oktober 2012 02:10
Antwort

Sujay Kumar Paul

Rang: Regular Member

Nachrichten: 165

Eintrittsdatum: 28. Oktober 2011

Neue Beiträge

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