提交 23b0453a authored 作者: GOD_ZYX's avatar GOD_ZYX

sesssion 设置

上级 74773981
......@@ -12,7 +12,7 @@ let sessionOpts = {
// Forces a session that is "uninitialized" to be saved to the store.
saveUninitialized: true,
// 设置会话cookie名, 默认是connect.sid
key: 'myapp_sid',
// key: 'myapp_sid',
// If secure is set to true, and you access your site over HTTP, the cookie will not be set.
cookie: { maxAge: 1000 * 60 * 60 * 2, secure: false }
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论