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.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?