by Bootvis · 13y ago · 0 comments
The data stored in the cookie is cryptographically signed with the secret token so the server can verify if its been tampered with. It's a very solid approach but like anything involving crypto it's important to keep the secrets secret!
To clarify, the secret token should only be known to the server. The client doesn't have it. The client only has their own signed cookie data.
At the very least cookie storage should be an opt-in for apps that need it, not a default with apparently not enough warnings about the security aspects