Guest User

Untitled

a guest
Feb 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. app.use(session({
  2. secret: 'cat',
  3. saveUninitialized: false,
  4. resave: false,
  5. store: new MongoStore({ mongooseConnection: mongoose.connection, ttl: 24 * 60 * 60 }),
  6. cookies: { maxAge: 24 * 60 * 60 * 1000 }
  7. }));
  8.  
  9. Cookies.get('connect.sid')
Add Comment
Please, Sign In to add comment