|
|
|
|
|
by supermatt
1349 days ago
|
|
you can use signed cookies for sessions - which have none of the drawbacks you mentioned. i.e. session data and expiration form the payload, and you sign the payload - then you validate the expiration and signature on subsequent requests. |
|
Solves some of the session problems..
Benefits:
Cookies - when set to http only + secure only are safer?
Drawbacks:
They're not cross-compatible No expiration baked in No not-before baked in Limited to hmac validation (no public key crypto options that I know of)
Unless you mean using a JWT as a cookie value. I guess that could work?