Ref: https://discord.com/channels/595317990191398933/941119649783894016/1040772933687201802
How to setup sessions stored in Cloudflare KV using the Remix createCloudflareKVSessionStorage
Sets up the server to include access to sessionStorage
and db
on every request. These can then be accessed anywhere else in the code base using `context.
Configures createCloudflareKVSessionStorage
to configure session cookies.
This file is really named app/session.js
Abbreviated sample of an action storing information in a session.
Sample of a loader reading info from a session