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
0
u/pjmdev Dec 07 '25
It is a draft at this point. It is not something ready for submission. Like kitchen said below. I had the idea and Claude helped me write it out and formulate it and I wanted to share it. Simple as that. I have not spent that much time on it, to consider every possible angle or issue.
Basically I am just fed up with the cookie prompts and GDPR requirements and saw that the cookie itself was a relatively old idea and thought, how can this be improved, the result is the proposed biscuit standard.
I am obviously open to any ideas and suggestions and yes I would be very surprised if it ever was adopted but from people I have spoken to, they do think aside for it being a funny name, a reasonable idea in general.