Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SecurityUtils.setSecurityManager(new DefaultSecurityManager());
- Subject subject = SecurityUtils.getSubject();
- Session session = subject.getSession(false);
- if (session == null) {
- // processing for null session
- session = subject.getSession(true);
- }
- session.getId();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement