Gentlemen, please suggest

When studying NodeJS, I did not find a module that would allow using sessions in a simple form similar to the PHP language. I mean that I have to write a lot myself. Same identifiers .. Is there any module? What would not reinvent the wheel?

ps I would like to declare a session on any page, set variables, and on another page, at a declared session, consider variables, but if you look at ALL possible examples, including from this forum, who has cookies, who has an entry in MySQL, there is no clear example of the session.

  • The fact is that sessions have long become anti-pattern because of their poor scalability. It is easier to abandon them altogether than to solve problems with them - therefore there is little information about them. - Pavel Mayorov
  • one
    In general, keep it up: github.com/expressjs/session - Pavel Mayorov

0