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

Issue

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.

Answered By – Leif Åstrand

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published