I am using Vaadin 7.7.9 and Apache Tomcat 9.0.
My goal is to expire user session after 12 hours, so if the user log on the system at 8am, the session must expire at around 6pm. But the session is expiring between 3.5pm and 4.5pm. Some times session expires after 15-30 minutes.
Why my session is not expiring after 12 hours?
Vaadin servlet parameters on servlet class:
@VaadinServletConfiguration(productionMode = true, ui =
com.dokcloud.DokcloudUI.class, heartbeatInterval = -1, closeIdleSessions = true)
On my UI class on init method:
DokcloudUI.getCurrent().getSession()
.getSession().setMaxInactiveInterval(43200); // 12 hours
The system is being publicised on elastic bean stalk (AWS).