Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

有两个 node 服务:
服务 a, 挂在域名 x.com 域名下
服务 b, 挂在域名 x.com/b/ 域名下

b 服务使用 nginx 方向代理, 没有设置路由前缀的

发现在同一个浏览器上,登录 x.com 和 x.com/b/,a 服务登录后 req.session.id 被 b 服务的 req.session.id 给混淆了,估计是 cookie 的问题,请问需要怎么设置 express 的 session 配置呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
304 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...