Whether you are browsing through an online shop or accessing your bank account online, your user data persisted across page loads thanks to sessions. Without them, every time you reloaded the window you would be logged out or lose your cart!
This lesson is about how to use
express-session to implement a session. We will try this out on a basic website with a login portal.
Review the diagram! We will be configuring sessions and cookies in the next few exercises.