Skip to content

timeout does not delete session stored in mongodb after the given time. #41

@dev-aman-gupta

Description

@dev-aman-gupta

Hi,

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions