Reference

https://www.youtube.com/watch?v=bqpgbTq8bbw

 

const session = require('express-session')

const store = new session.MemoryStore()

const app = express()

app.use( session({
  sectret: 'some secret'},
  saveUnitialized: false,
  store

})