Browse Source

Demo: comment out session store

developer
Erik Römmelt 4 years ago
parent
commit
dda5e89990
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      server.js

+ 4
- 4
server.js View File

secure: true, // true for https only (since our app works only with https) secure: true, // true for https only (since our app works only with https)
}, },
name: 'om.sid', name: 'om.sid',
store: new MongoStore({
mongooseConnection: mong.connection,
ttl: 30 * 24 * 3600,
}), // mongoose + connect-mongo
// store: new MongoStore({
// mongooseConnection: mong.connection,
// ttl: 30 * 24 * 3600,
// }), // mongoose + connect-mongo
//store: new MemoryStore ({checkPeriod: 24*3600*1000}), // memorystore //store: new MemoryStore ({checkPeriod: 24*3600*1000}), // memorystore
})); }));



Loading…
Cancel
Save