GLOBAL data per HTTP/Session request?

前端 未结 5 2272
刺人心
刺人心 2021-01-05 23:56

QUESTION:

Is there any way to create a variable storage in per session/http request? The variable must be globally accessible and different

5条回答
  •  情深已故
    2021-01-06 00:47

    have you tried using a cookies? set the cookie to the browser and then everytime there is a request, you would know the user by its cookie.. you may use 'cookie-parser' node library.

提交回复
热议问题