Is the only way to use session cookie if I wanna keep a user logged in even if he has restarted the comput开发者_运维问答er?
I would appreciate all kinds of solutions for different scenarios.
I am using Node.js/Express.
I would say yes : keeping his IP will not work every time.
Depending on your context (intranet application most often), you may also have a look at SSO solutions like kerberos
For further searches like me, this issue is better described/explained in this post on Stack:
Managing Sessions in Node.js?
精彩评论