No VaadinSession with Vaadin Fusion

Viewed 69

I noticed that with Vaadin Fusion endpoints, there seems to be no VaadinSession available. Is this by design? Am I doing anything wrong?

enter image description here

2 Answers

You should not rely on a VaadinSession when using Fusion. There might or might not be one available today because of historical reason.

The VaadinSession mainly holds Flow UI instances for a given VaadinServlet/VaadinService. It requires locking before accessing, something you want to avoid with Fusion.

If you want to store values in the session, use the standard HTTPSession

Related