0PricingLogin
Django Academy · Lesson

The Session Framework

Store data tied to a single visitor.

Why Sessions Exist

HTTP forgets you between requests. The session framework lets Django remember each visitor across page loads, so a login or a cart can survive. 🍪

What a Session Stores

A session is a small bag of data tied to one visitor. Django keeps it on the server and gives the browser only a key to find it again.

All lessons in this course

  1. The Session Framework
  2. Reading and Writing request.session
  3. The Messages Framework
  4. Cookies vs Sessions
← Back to Django Academy