Sessions vs JWT vs Cookies: Understanding Authentication Approaches
What sessions are => A session is a way for the server to remember a user.
How it works:
User logs in
Server creates a session (stores user data on server)
Server sends a session ID to the browser
kanu22.hashnode.dev3 min read