If you are first loggued with a user "user 1" and you choose to store connection in cookie, it will be impossible to be loggued with another user without clearing the cookie.
How to reproduce
- Log with "user1" on "http://localhost:8080/cms" (demo application)
- Check the remember me box
- Shut down application and start another CMS application on the same domain "http://localhost:8083/cms" (port can be different). The user "user1" does not exist on this CMS application
- Go to http://localhost:8083/cms and try to log with "user2"
=> As user1 is unknow user, the authentication form is display, but it is unable to be loggued with another user, the application always try to authenticated with user "user1"
We need to clear browser cookies to continue