--- title: createMemorySessionStorage --- # createMemorySessionStorage [MODES: framework, data] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v8/functions/react-router.createMemorySessionStorage.html) Creates and returns a simple in-memory SessionStorage object. Intended for local development and testing. It does not scale beyond a single process, and all session data is lost when the server process stops/restarts. ## Signature ```tsx function createMemorySessionStorage({ cookie, }: MemorySessionStorageOptions = {}): SessionStorage ``` ## Params ### options Options for creating the in-memory session storage. ## Returns A [`SessionStorage`](https://api.reactrouter.com/v8/interfaces/react-router.SessionStorage.html) object that stores session data in memory.