Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Long sessions

Dmitri Pisarenko
1 decade ago Jan 11, 2011 1:13pm
Marko Grönroos
1 decade ago Jan 11, 2011 1:21pm

Either set the session timeout in the server to a long enough value or use polling to keep the session alive.

You can use the Refresher add-on or the standard ProgressIndicator component for keep-alive polling.

David Wall
1 decade ago Jan 11, 2011 5:47pm

Or set a very long session timeout in your WEB-INF/web.xml, so 8 hours in minutes would be:

<session-config>
<session-timeout>480</session-timeout>
</session-config>

Dmitri Pisarenko
1 decade ago Jan 11, 2011 6:05pm
Dmitri Pisarenko
1 decade ago Jan 11, 2011 6:10pm
Marko Grönroos
1 decade ago Jan 11, 2011 6:29pm