How is koa’s session stored?

  node.js, question

Log out
After logging in, information such as user information and login status is stored, and koa-session2 module is used.

koa-session2

When I used PHP, I used to use it as a storage space. I found that it was not the same thing in koa inside. After I logged in, other routes initiated the request. I found that I could not get the value of session. It was more like a variable was released. I couldn’t figure out what the problem was.

Answer it yourself and store it in redis or other databases.