Summary
By logging out the PersistentTokenBasedRememberMeServices removes all the tokens from database that are tied to that username without considering the device he wants to logout.
Actual Behavior
- Login browser 1
- A cookie is created on the browser
- A remember me token is created in the database for that username
- Login browser 2
- A cookie is created on the browser
- A new remember me token is created in the database for that username
- Logout browser 1
- The cookie is deleted from the browser
- All the tokens are deleted from databases for that username regardless of their browser
- User tries to use the cookie on the second browser but the corresponding token is missing
Expected Behavior
On step 9 only the token corresponding to that session and cookie should be deleted
Configuration
No custom configuration
Version
4.2.3.RELEASE
Comment From: tqchu
Did you solve the issue? I have the same issue in Spring Security 5.7.4