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.
7
Upvotes
View all comments
Show parent comment
4
u/Kitchen_Put_3456 Dec 06 '25
Yeah. This is clearly mostly AI generated "spec". Someone had an idea and an AI tool that agreed with every point they had. Unfortunately we will see a lot more of these kinds of poorly thought specs in the future.