signed cookie

A cookie whose value carries a signature, such as an HMAC, so the server can detect any change made by the client.

In more detail

The server recomputes the signature on each request and rejects the cookie if it does not match. Compare signatures in constant time, rotate the secret if it leaks, and encrypt as well if the contents must stay private.

Related terms

Taught in

References