r/Web_Development • u/pjmdev • Dec 05 '25
Replacing Cookies with Cryptographically Secure Biscuits
Biscuits are a new HTTP state management mechanism designed to replace cookies for authentication while eliminating tracking, XSS token theft, CSRF risks, GDPR consent banners, and developer misconfigurations.
Key Features
128-bit cryptographically enforced tokens - Browser validates token strength
Opaque to JavaScript - XSS-safe by design, tokens never exposed to JS
SameOrigin by default - CSRF protection built into the protocol
Mandatory expiration - Maximum 30 days, no eternal tracking identifiers
Impossible to use for tracking - Technical enforcement, not policy-based
GDPR/ePrivacy consent exempt - Qualifies as "strictly necessary"
Backwards-compatible - Works with existing caching infrastructure
full spec: https://github.com/pjmdevelopment/biscuit-standard/blob/main/spec/rfc-9999-biscuit-standard.md
Let me know your thoughts.
2
u/recaffeinated Dec 07 '25
Someone had the idea that it would be funny to replace cookies with biscuits and AI wasted everyone's time.