hono icon indicating copy to clipboard operation
hono copied to clipboard

Chunked cookie utils

Open NamesMT opened this issue 2 months ago • 1 comments

What is the feature you are proposing?

Most browsers limit each cookie key to ~4000 characters, this create some obstacles when trying to implement a session / state manager using Cookie-store.

h3 have some nice utils that automatically chunks the data to several cookies, might be worth re-implementing them in official hono cookie helpers?

NamesMT avatar Oct 05 '25 18:10 NamesMT

@NamesMT

I've never thought I wanted to do that function before, and now (since I'm not creating real-world systems, so I may not have the chance to handle a large cookie), but it's a good idea. As with #4444, we can make this a "Request For Comments".

yusukebe avatar Oct 23 '25 08:10 yusukebe