0Pricing
Django Academy · Lesson

Cookies vs Sessions

Choose the right place to store state.

Two Ways to Remember

Both cookies and sessions help your app remember a visitor, but they store data in very different places. Knowing which to pick matters. 🤔

What a Cookie Is

A cookie is a small piece of text the browser keeps and sends back on every request to your site. The data lives on the client.

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