Reputation: 338594
Does Vaadin 7 offer some kind of session identifier? I want to track some usage by each session.
I looked at the doc for VaadinSession
but did not notice any.
I suppose I could roll my own by generating a UUID and attaching it to the VaadinSession with a call to setAttribute
. But no need if Vaadin gives me an identifier.
Upvotes: 5
Views: 3221
Reputation: 10709
You could get the SESSION_ID
via the VaadinSession
( and then WrappedSession
).
VaadinSession.getCurrent().getSession().getId()
Upvotes: 12