How to use sessions
How to use sessions
Django provides full support for anonymous sessions. The session framework lets you store and retrieve arbitrary data on a per-site-visitor basis. It stores data on the server side and abstracts the sending and receiving of cookies. Cookies contain a session ID – not the data itself (unless you’re using the cookie based backend).
Enabling sessions
Sessions are implemented via a piece of middleware.
To enable session functionality, do the following:
- Edit the
MIDDLEWARE
setting and m