How can I find the session Id when using express / connect and a session store?

前端 未结 4 631
星月不相逢
星月不相逢 2021-01-31 16:55

If a user is already logged in and tries to login again in a new instance I\'d like it to log out the other user instance. I don\'t want the same user to be logged in twice on m

4条回答
  •  渐次进展
    2021-01-31 17:14

    req.sessionID will provide you the session's ID, where req is a request object.

提交回复
热议问题