alexanoid
alexanoid

Reputation: 25862

Vaadin session management

Please correct me if I'm wrong, but according to my understanding, VaadinSession has the same time to live as its owner HTTP session.

So, in order to configure the timeout for both Vaadin and HTTP sessions, we can use the following Spring Boot property:

server.servlet.session.timeout=30m

Is it possible to separate the timeout for HTTP sessions from that of Vaadin sessions? For example, can I set the HTTP session timeout to 7 days and the Vaadin session timeout to 30 minutes? The idea here is to store generic information about the logged-in user, such as an OAuth token, in the HTTP session, and Vaadin-related information in the Vaadin session. If this is possible, can I configure the session persistence mechanism only for the data stored in the HTTP session? I don't need to persist the Vaadin-related data because it seems like I can easily recreate it based on the OAuth2 token from the HTTP session and the database data in the SessionInitListener.

Am I on the right track, or is it not possible?

Upvotes: 0

Views: 464

Answers (0)

Related Questions