what about setting a secure cookie with a jwt, and expiring it when you log-out?
what is the utility in server-sessions?
(aside from the ability to revoke it at any time from the server.)
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?