React Security - Add a Session-Based Middleware

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ •

  • @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