Learn

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.

Instructions

Review the diagram! We will be configuring sessions and cookies in the next few exercises.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?