Advertisement
Guest User

Untitled

a guest
Mar 1st, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. SecurityUtils.setSecurityManager(new DefaultSecurityManager());
  2. Subject subject = SecurityUtils.getSubject();
  3. Session session = subject.getSession(false);
  4. if (session == null) {
  5.   // processing for null session
  6.   session = subject.getSession(true);
  7. }
  8. session.getId();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement