Basil Bourque
Basil Bourque

Reputation: 338594

Vaadin 7 Session Id

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

Answers (1)

Jose Luis Martin
Jose Luis Martin

Reputation: 10709

You could get the SESSION_ID via the VaadinSession ( and then WrappedSession).

VaadinSession.getCurrent().getSession().getId()

Upvotes: 12

Related Questions