springspring-bootvaadinvaadin-flowmaven-jetty-plugin

Vaadin 14 Embedded Jetty 9.4 + Spring boot do not persist session


I have a project with Vaadin 14 + Spring Boot 2.4.5 which runs on the embedded Jetty / jetty-maven-plugin 9.4

In my current Setup, sessions get persisted. I did not configure this (knowingly) and I don't want it.

I found how to enable session persistence: https://docs.huihoo.com/jetty/the-definitive-reference/using-persistent-sessions.html#enabling-persistence-for-jetty-maven-plugin

The default value should be no persistence but I find no hint how to get back to this.


Solution

  • The embedded Jetty is managed by Spring Boot. You can set server.servlet.session.persistent=false in application.properties to disable session persistence.