EasyEnv
Engineering/Courses/Catalog/Web/Cookies, Sessions, and Tokens
Web
IntermediateLesson 4 of 1425 min · hands-on

Cookies, Sessions, and Tokens

Part of the Web course

HTTP has no memory. Every single request you send is treated by the server as if it had never seen you before, even if you sent the exact same request five seconds ago. That is a real problem the moment you need a server to know "this request is from the same person who just logged in." Without some way to carry that fact forward, every click on a website would ask you to log in again.

Cookies, sessions, and tokens are the three answers the web has settled on for that problem. They solve the same thing, "remember who this request is from," in three different ways, each with its own tradeoffs. By the end of this lesson you will be able to look at a real login flow and say which of the three it is using, and why. ...

Want to learn Web Cookies, Sessions, and Tokens in a real environment?

Click below, get a fresh Linux box with Web ready to go, and work through Cookies, Sessions, and Tokens hands-on with an AI tutor that knows your code.

Start this lessonCookies, Sessions, and Tokens

What you'll learn

  • Set-Cookie
  • HttpOnly
  • Secure
  • SameSite
  • Server sessions
  • JWT
  • Opaque tokens

Read this lesson in your language

All lessons in this course

14 lessons
  1. 1What Is The Web20 min
  2. 2HTTP vs HTTPS15 min
  3. 3Request and Response Anatomy30 min
  4. 4Cookies, Sessions, and Tokens25 min
  5. 5DNS Explained25 min
  6. 6TLS and Certificates30 min
  7. 7CORS30 min
  8. 8REST API Basics25 min
  9. 9WebSockets and SSE25 min
  10. 10Caching and CDNs25 min
  11. 11Security Headers25 min
  12. 12Rate Limiting and Throttling20 min
  13. 13Monitoring and Logging20 min
  14. 14Capstone: A Tiny Web Server40 min

Explore other courses

Cookies, Sessions, and Tokens - Web (English) | Engineering Courses