React Security - Add a Session-Based Middleware

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 4

  • @hamzahmd_
    @hamzahmd_ 2 года назад +1

    Ryan, your voice is as clear as if I were listening to a podcast.
    High-quality Content!

  • @CBphantomCB
    @CBphantomCB 3 года назад +1

    the session data is not persisting across routes, even when using session.save() or res.send...

  • @theOrdinaryDev
    @theOrdinaryDev 3 года назад +2

    hey!, great content
    I followed your code but there is a slight problem.
    When I make a session in my login route (req.session.user = myUser), it shows the user in my session. BUT when I try to access req.session.user from a different route (say- home) it dosen't exist.
    PLS help.

    • @CBphantomCB
      @CBphantomCB 3 года назад

      I agree, this is also my current issue, i have tried lots of methods for no success