Long sessions

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.