5

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.

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154

1 Answers1

12

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

VaadinSession.getCurrent().getSession().getId()
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
Jose Luis Martin
  • 10,459
  • 1
  • 37
  • 38