Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.use(session({
- secret: 'cat',
- saveUninitialized: false,
- resave: false,
- store: new MongoStore({ mongooseConnection: mongoose.connection, ttl: 24 * 60 * 60 }),
- cookies: { maxAge: 24 * 60 * 60 * 1000 }
- }));
- Cookies.get('connect.sid')
Add Comment
Please, Sign In to add comment