Skip to content
Discussion options

You must be logged in to vote

There's nothing special about Remix cookies. The cookie value is simply base64 encoded with a signature appended to it: base64value.signature

For example, here's a typical session cookie:
eyJfX3Nlc3Npb25faWRfXyI6IjY5M2M4OTBiLWUyNjQtNGQzNi05NjFjLWY4NGEyOGI5MjU4MSJ9.Pl78kgTwFINtGOWY41eEAJLL77ubzONI8IuFFJ7j1z8
decodes to

{"__session_id__":"693c890b-e264-4d36-961c-f84a28b92581"}[...signature...]

By default, Remix cookies are set to be httpOnly, which means they cannot be accessed by the browser. However, you can change this setting to false to access cookies via document.cookies.

https://github.com/remix-run/remix/blob/main/packages/remix-server-runtime/cookies.ts

You can use any cookie libr…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by spacepolice10
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