Session Specific Objects in Vaadin 7

Hi everyone,

I’m with a little problem here using session management. How does the session management works into Vaadin 7?

In my use case, if the user open the same App on the same browser, but into another tab, it would preserves the authentication attributes and automatically login into my app. But it doesn’t occurs.

If I use UI.getCurrent().myObjectSession , every new browser tab, it needs to be filled again… I agree with that behaviour if I’ve different browsers, but not in the same browser…

How does it works? How can I change that?

Regards!

Have a look at these links:


https://vaadin.com/web/joonas/wiki/-/wiki/Main/Supporting+Multible+Tabs


https://vaadin.com/forum#!/thread/196607


https://vaadin.com/forum#!/thread/272925

There is one VaadinSession instance per user (and browser) and one UI instance per tab. If you want to make login work for all tabs you need to store the authentication info in VaadinSession instrad of in your UI instance.