FileSessionStorage component persists session data to the file system.
Example codeAnchor link to section titled "Example code"
||The name of the cookie stored in the browser.|
||A directory to store the session files in. Each session is stored in a separate file on the file system.|
||An optional object to configure how the cookie is persisted in the browser.|
Component typeAnchor link to section titled "Component type"
FileSessionStorage component is a server component that renders inside
App.server.jsx. For more information about component types, refer to React Server Components.
ConsiderationsAnchor link to section titled "Considerations"
FileSessionStorage relies on the file system, it shouldn't be used in Edge workers, and instead only in NodeJS deployments.