npm i express-session //On Hyper/CMD
const session = require('express-session'); //To Acquire it
app.use(session({ //Usuage
secret: 'keyboard cat',
resave: false,
saveUninitialized: true,
cookie: { secure: true }
}));
app.use(session({
secret: process.env.COOKIE_SECRET,
resave: false,
saveUninitialized: true,
cookie: { maxAge: 1000 * 60 * 60 * 24 },
store //connect-mongodb-session
}))
$ npm install express-session