# Sessions and Cookies

A session keeps a student signed in the way a coat check does, with the record on the server and only a random ticket in the browser's cookie, and express-session sets it up with the HttpOnly, Secure and SameSite flags; it's the simpler choice for one website on its own server.

![Cheat sheet: Sessions and Cookies](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/e8ee6cc3d7044066bd85c8b43a114bf0.webp)

- Category: Node.js
- Level: Journeyman
- Tags: Cookie, HttpOnly, nodejs, Session (web-development), Stateless, web-development
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-auth-sessions-and-cookies-cheat-sheet
