Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Alex Kudinov
Session timeout
6. August 2008 17:08
Antwort

Alex Kudinov

Rang: Junior Member

Nachrichten: 31

Eintrittsdatum: 14. Januar 2008

Neue Beiträge

I want my users session to be active as long as they have their browser window open. To do so I specify the following parameters in the portal-ext.properties:

session.timeout=5
session.timeout.warning=0
session.timeout.auto.extend=true

Now session.timeout is said to be overriden by the session-timeout setting in web-xml. What exactly that setting should be to make the whole thing work? Should it be same 5 mins? But I suspect that my sessions all timeout in 5 mins then without extension. Or should I delete this setting from web.xml completely?

Thanks, Alex.
Thiago Leão Moreira
RE: Session timeout
6. August 2008 22:27
Antwort

Thiago Leão Moreira

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1211

Eintrittsdatum: 10. Oktober 2007

Neue Beiträge

Hi Alex,

When you set a value on the web.xml this value overrides the portal-ext.properties so if you want to set 5 minutes to timeout you may set 5 on both files or only on the web.xml. You can also delete the timeout configuration from web.xml file and only uses portal-ext.properties.

Regards
Alex Kudinov
RE: Session timeout
7. August 2008 03:20
Antwort

Alex Kudinov

Rang: Junior Member

Nachrichten: 31

Eintrittsdatum: 14. Januar 2008

Neue Beiträge

I tried to delete setting from web.xml and my session timed out in 30 mins or so, which is wrong since I want it to be extended indefinitely as long as my browser window is opened.