网站搬家,数据库自然也要搬家。之后运行node ./bin/www
报错:deprecated undefined resave option; provide resave option app.js
app.use(session({
secret: 'myblog',
key: 'blog',//cookie name
cookie: {maxAge: 1000 * 60 * 60 * 24 * 30},//30 days
store: new MongoStore({
url: 'mongodb://blog:123@localhost:27017/blog'
}),
resave:false,//添加这行
saveUninitialized: true//添加这行
}));