how to revoke Http-only cookies in the browser when logging out in frontend?
situations:
- I set an authentication cookie for logged users on the server.
- the cookie marked as Http-only to prevent XSS attack.
- the cookie set 3 months expiration to prevent inputting credential every time.
- Occasionally, when the user clicked the logout button the network is not working for some unknown reason so the browser keeps that cookie after the user logged out.
- to prevent this happen, I have to force the browser to revoke cookies after the user clicks the logout button.
- but the wiki told me that I do not have the permissions to change the Http-only cookies.
So, How can I revoke the Http-only cookie?
Or, am I missed something in session configurations on the server?