Replies: 1 comment 1 reply
-
|
Hey @haohello , The session expiry time depends on two factors: 1- The Session ID cookie setting:Which can be passed as the export const session = nextAppSession({
name: 'SID',
secret: 'secret goes here' ,
cookie: {
// Bowser Cookie options can be passed here
maxAge: 100000, // milliseconds to expire cookie after last session update, you can set to zero to disable expiry
// Or you can use expires
// expires: new Date('2023/10/03')) // a set date/time
}
}); 2- The session store:Another important factor to the lifetime of the session is the session storage service you're using.
TLDR: Thanks for the inquiry, and I'll make sure to update the docs to have session expiry examples and FAQs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions