HttpServletRequest request = ((ServletRequestAware) auth).getRequest();
if (null == request) {
return;
}
HttpSession session = request.getSession();
CategoryProfile profile = authenticationManager.getSessionController()
.getProfileProvider().getCategoryProfile(
((UserDetails) auth.getDetails()).getCategory());
session.setMaxInactiveInterval(profile.getInactiveInterval() * 60);
((ServletRequestAware) auth).setRequest(null);
UserDetails details = (UserDetails) auth.getDetails();
if (null == details) {
return;
}