// https://www.baeldung.com/spring-security-session//同個使用者一次只能一個session登入,重複原本登入的會回應This session has been expired (possibly due to multiple concurrent logins being attempted as the same user).
http.sessionManagement().maximumSessions(1);
demo code:https://github.com/imrexhuang/Spring-Boot-Security-Thymeleaf-Demo/commit/f65ba7740cfff0a13417ca12b3bbf052ae8e83bd
沒有留言:
張貼留言