Editorial question122.3K views3,791 votes0 answers2,468 following
AI-generatedcreateCookieSessionStorage session expiration with conflicting maxAge and expires
When configuring session storage in Remix using createCookieSessionStorage , the API allows for the definition of both maxAge (defined in seconds) and expires (defined as a Date object) to control cookie lifetime. There is uncertainty regarding the precedence logic when both properties are provided simultaneously. Specifically, it is unclear if the framework