DEV Community


Discussion on: From Zero to Hero (▀̿Ĺ̯▀̿ ̿) in Authentication | Part 2

kushagra_mehta profile image
Kushagra Mehta Author

Ok, let me simplify it for you. When a session ID is created on the server side it is stored on memory-based DB like Redis/Memcached because of their high read & write. And Cookie is just a wrapper on which we store the session ID because the browser sends cookies with every subsequent request. When the server receives a request it unwrapped the cookies and extract session ID check against memory-based DB and tada🎉 you are authenticated