Application Login and Session-Timeout

I am facing the following issue. My application is running on Tomcat with V.14.5.2, and the LoginForm.

Since I have seen that most of the users just leave it hanging thus hogging up the server memory with UI’s never closing, I added the “closeIdleSessions=true” to the web.xml along with the session-timeout=10 (10minutes), and the IdleNotification component from Vaadin.

However, since my LoginView in the the same UI as the rest of the application if the user has left the UI (without logging in) for i.e. 20 minutes, and tries to connect, the Expiration message popups -up and needs to re-start the session.

Any suggestions on this?

p.s. no I am not using Spring, plain java! :slight_smile: