Is it possible to set cookies to never expire for express-session? If not is there a maximum maxAge?
I found some documentation on how to set the cookie expiration here on SO ( 10+ years old ) and here on express. However; this is for a specified time of 1 year.
Is it possible to never have it expire and if so how?
My config looks like this where maxAge is now set to default as follows:
const options = {
// ... snip
resave: false,
saveUninitialized: true,
cookie:{
maxAge: null
},
store: new RedisStore({ client: RedisClient })
};
As a side what is the default maxAge?
According to the docs the default (null) should not be persistent, but if I leave the value at null they are still persisting for some time.