I found a strange issue where the sessions are not timed out after the specified time.
app.use(session({
secret: 'jwtsecret',
resave:false,
saveUninitialized:true,
store: sessionstore.createSessionStore({
type: 'mongodb',
host: 'localhost', // optional
port: 27017, // optional
dbName: 'dbName', // optional
collectionName: 'sessions',// optional
timeout: 10000 // optional
})
}));
sessions are created correctly but are not timed out or deleted according to the given timeout. Can you please help here/
Hi,
I found a strange issue where the sessions are not timed out after the specified time.
sessions are created correctly but are not timed out or deleted according to the given timeout. Can you please help here/