Session Timeout / Heartbeat interval

Hi everyone.

I have a question regarding the timeout wich can be set via server.servlet.session.timeout = 15m

Am i right, that vaadin/clients tab sends a heartbeat every 5 minutes which keeps the session alive. When a user closes all his tabs and has no UI open, the heatbeat fails. From this failed heartbeat on, the countdown of 15 min starts until the session gets invalidated.

As long as i have minimum 1 Tab open, the server session keeps alive.

Is that correct?

Heartbeats are keeping the session alive, but so are any other HTTP requests to the server. Session timeout happens once there are no requests to the servlet during the configured period.

1 Like

Check the documentation here: How to manage the Vaadin application lifecycle

1 Like