1const express = require('express')
2const session = require('express-session')
3
4const app = express()
5app.use(session({
6 'secret': '343ji43j4n3jn4jk3n'
7}))
8
1app.use(express.session(
2 { secret: "secret", store: new MemoryStore(), expires: new Date(Date.now() + (30 * 86400 * 1000))
3 }));
4