Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

感谢楼主 #4

Open
huangzhenshi opened this issue Nov 17, 2016 · 0 comments
Open

感谢楼主 #4

huangzhenshi opened this issue Nov 17, 2016 · 0 comments

Comments

@huangzhenshi
Copy link

真心下了好多demo,你的终于跑出来了。感谢啊!
but,可能是 nodejs版本问题,我启动的时候报错
express-session deprecated undefined resave option; provide resave option app.js

后来我调整了2个地方:
app.use(session({
secret:'secret',
cookie:{
maxAge:10006030
}, resave: true, saveUninitialized: true
}));

添加了 , resave: true, saveUninitialized: true
依赖的地方:package.json "express-session": "*",
然后跑起来了,真不容易啊(我之前是做web后端的)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant