by justaaron · 8y ago · 0 comments
and how would you do that if the user doesn't actively log out of a service?
specifics depend upon the language and framework used on the server, etc...
2) logout = request to server, server sets cookie with "token=empty;expires:1970yaddayadda" as it's httpOnly there's no client-side messing baout with the cookie otherwise
3)_all pages send cookie with each request, so must be tls
upon logout, cookie has empty token, must be re-set with new token. old token, if stolen, can be compared with logged history, etc.
what do you see, in terms of flaws?