Skip to content

Cookie is parsed as empty object #10048

Answered by kiliman
tjhoo asked this question in Q&A
Discussion options

You must be logged in to vote

The Remix cookie functions are designed to encode/decode cookies created by Remix, not generic cookies. These cookies are typically base-64 encoded and signed, so if not in the expected format, Remix will return an empty object.

If you want to support 3rd party cookies, then you'll need to parse them yourself. You can use the cookie package, which is the same library that Remix uses.

Here's more discussion about it.

#5198

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tjhoo
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