Skip to content

Is it safe to use both SignedCookieJar and CookieJar in a single handler? #2036

Answered by davidpdrsn
yuttie asked this question in Q&A
Discussion options

You must be logged in to vote

Yes that is safe, even if they share the same key.

Cookies work via the Set-Cookie header which contains a key/value pair like Set-Cookie: key1=value1;. So if you set ABC in a signed jar that translates to a signed value in the header. If you then set XYZ in a different header those don't conflict.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yuttie
Comment options

Answer selected by yuttie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants