当用户浏览我的网站时,我该如何坚持?node . js

时间:2022-11-11 23:03:05

When a user logs into my site, I need to persist that login session. Of course, this is done using sessions/cookies. In Django, this is built in.

当用户登录到我的站点时,我需要保持登录会话。当然,这是使用会话/cookie完成的。在Django中,这是内置的。

But in Node.js, how do I persist this? I'm looking at connect-auth module: https://github.com/ciaranj/connect-auth

但在节点。js,我怎么坚持?我正在查看connect-auth模块:https://github.com/ciaranj/connect-auth

But it doesn't seem like it handles persistence...

但它似乎不能处理持久性……

1 个解决方案

#1


3  

node-sessions library is one option. Rolling out your own also should not be too difficult.

节点会话库是一种选择。推出自己的产品也不应该太难。

#1


3  

node-sessions library is one option. Rolling out your own also should not be too difficult.

节点会话库是一种选择。推出自己的产品也不应该太难。