1var cookieSession = require('cookie-session')
2var express = require('express')
3
4var app = express()
5
6app.use(cookieSession({
7 name: 'session',
8 keys: [/* secret keys */],
9
10 // Cookie Options
11 maxAge: 24 * 60 * 60 * 1000 // 24 hours
12}))
13