Comments (3)
Yes, the documentation needs to be corrected. For the session API, all session storage providers require you to call commitSession
after mutation.
I think what the documentation was alluding to was you don't have to return a set-cookie
header in the response after every commit, just the initial one.
In cookie session storage, the session data is stored entirely in the cookie, so any changes require you to send an updated cookie via the set-cookie
header.
However, in other storage providers like Cloudflare KV or file-based sessions, the only thing stored in the cookie is the session ID. You would send that id in the set-cookie
header on creation. The session ID is used to look up the session in the storage. Since the session id never changes, you don't need to keep sending a set-cookie
header.
from remix.
@kiliman thanks, I raised a PR here along those lines. Let me know if you have a suggestion on wording
#9445
from remix.
Might be related with this issue? Its about memory / custom storage, but looks like same sort of problem with the behavior and documentation:
#9338
from remix.
Related Issues (20)
- Routing issue with server routes configured in defineRoutes HOT 1
- Build fails in Docker when importing certain Modules (like Zod) HOT 1
- unstable_defineLoader can't handle types with arrays HOT 3
- When parent route loads data using `useFetcher`, all child routes/components that use `useFetcher` gets re-rendered HOT 4
- Remix + Vite build and ServerBuild are incompatible HOT 1
- Infinite loop on unhandle error using Layout Export with ErrorBoundary HOT 7
- Cannot use import statement outside a module | when using @uiw/react-markdown-editor HOT 5
- _index.tsx:3 Uncaught SyntaxError: The requested module '/app/styles/index.css' does not provide an export named 'default' (at HOT 1
- [remix] dest already exists. HOT 3
- Removing a loader causes errors for users that have your app open already HOT 2
- Error: The render was aborted by the server without a reason. HOT 2
- `defer` does not work on search param navigation HOT 4
- Root App component is mounted twice in dev mode with vite HOT 2
- Link prefetch calls loader despite the presence of clientLoader
- Defer breaks on hydration error HOT 3
- Relax version of Prettier in `package.json` to support Prettier 3 HOT 2
- Hydration failed when I use clientLoader with custom basename. HOT 1
- Single Fetch: redirects do not strip basename
- Changing environment variables restarts Vite server but doesn't actually update value HOT 1
- Remix on Vercel keeps getting 403 forbidden error on Server Side Actions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remix.