每个不同登录用户只创建一个用户会话,而不是为每个用户创建一个新会话
作者: skepticon7创建于 2024年1月14日更新于 2025年11月10日
Hello, I have a problem with my login application. I am using the passport-local strategy to authenticate users, but the problem is that only one user session is created at the MongoStore, instead of a unique session for each logged in user. Every recently logged in user overwrites the old session and stores the ID in the only session that exists here. Here is my code if anyone wants to help. Thank you
内容来源: jaredhanson/passport