I have a problem with my j2ee application using spring security. I am setting up max sessions in parallel session management mode 1. Now it works fine when I try to log in a second time when it stops me. But when I log out and try to log in, I still get this message.
Your login attempt was not successful, please try again. Reason: Maximum sessions 1 for this principal exceeded
I have it in my http security
<security:logout logout-url="/logout.do" invalidate-session="true" logout-success-url="/logoutSuccess.do" /> <security:concurrent-session-control max-sessions="1" exception-if-maximum-exceeded="true" expired-url="/loginform.do" />
source share