简体   繁体   中英

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.

您可以通过VaadinSession (然后是WrappedSession )获取SESSION_ID

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM