From d9c01da1f8ba3d4e0947fd1d619c8f4a9b013360 Mon Sep 17 00:00:00 2001 From: Marc Tamlyn Date: Sat, 18 May 2013 18:37:39 +0200 Subject: [PATCH] Improve cookie based session backend docs. Note the don't require sessions to be in installed apps. --- docs/topics/http/sessions.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt index 0f2955fadd..268055b6fc 100644 --- a/docs/topics/http/sessions.txt +++ b/docs/topics/http/sessions.txt @@ -118,6 +118,13 @@ To use cookies-based sessions, set the :setting:`SESSION_ENGINE` setting to stored using Django's tools for :doc:`cryptographic signing ` and the :setting:`SECRET_KEY` setting. +.. note:: + + When using cookies-based sessions :mod:`django.contrib.sessions` can be + removed from :setting:`INSTALLED_APPS` setting because data is loaded + from the key itself and not from the database, so there is no need for the + creation and usage of ``django.contrib.sessions.models.Session`` table. + .. note:: It's recommended to leave the :setting:`SESSION_COOKIE_HTTPONLY` setting