스프링시큐리티 중복로그인
-
Spring Security 중복로그인 막기Spring 2018. 9. 4. 22:57
1) WEB.xml에 추가 12345 org.springframework.security.web.session.HttpSessionEventPublisher Colored by Color Scriptercs 2) security-context.xml 파일에 상황에 맞게 추가max-session : 최대 세션수error-if-maximum-exceeded : 현재 접속한 세션수보다 많으면 에러 발생 상황1)1)중복로그인 시도 2)현재 접속중인 로그인유저 무효3)중복로그인 시도자 로그인 성공 123456 Colored by Color Scriptercs 상황2)1)중복로그인 시도2)현재 접속중인 로그인유저 유지3)중복로그인 시도자 로그인 실패12345 Colored by Color Scriptercs