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
- The Session Framework
- Reading and Writing request.session
- The Messages Framework
- Cookies vs Sessions