User-Info to Vaadin Session

Dear All,

how and where do I store user-information (e.g. name, email, id, etc) within a vaadin session to make it accessable from everywhere over VaadinSession.getCurrent()?

I thought of extending the VaadinServlet (MyServlet extends VaadinServlet) with the functionality of set- and getUser(). But i am not able to access this functions.

Thanks in advance


Hi Patrick. Have you tried the setAttribute in VaadinSession ?

Hi Pekka,

Thank you. No i did not try that. Works fine.