In implementing the apps login,I want to use the spring security to set who logins,but how to set remember? My UserLogin likes this.
UserDetails usDetails userDetails.loadUserByUsername(u.getAccount()); Authentication authentication = new UsernamePasswordAuthenticationToken(
usDetails, usDetails.getPassword(), usDetails.getAuthorities());
SecurityContextHolder.getContext().setAuthentication(authentication);
HttpSession session = request.getSession(true); session.setAttribute("SPRING_SECURITY_CONTEXT",SecurityContextHolder.getContext());
But How can I set remember?