app.use(session({
secret: 'foo',
cookie: {maxAge: 1000 * 60 * 60 * 1},//1 hours
store: new MongoStore({
host: 'localhost',
port: 27017,
db: 'foo'
})
}));
大神们,这里面的secret是什么意思呢?
app.use(session({
secret: 'foo',
cookie: {maxAge: 1000 * 60 * 60 * 1},//1 hours
store: new MongoStore({
host: 'localhost',
port: 27017,
db: 'foo'
})
}));
大神们,这里面的secret是什么意思呢?