Ticket #3137: session_docs.diff

File session_docs.diff, 782 bytes (added by Rob Hudson <treborhudson@…>, 7 years ago)
1Index: docs/sessions.txt
3--- docs/sessions.txt   (revision 4194)
4+++ docs/sessions.txt   (working copy)
5@@ -23,6 +23,11 @@
6       run `` syncdb`` to install the single database table that stores
7       session data.
9+Note that the ``django_session`` table will not purge itself of expired
10+sessions.  You will likely want to set up an external script to purge expired
11+sessions on a regular basis.  See the script in the source at
12+``django/bin/`` as an example.
14 If you don't want to use sessions, you might as well remove the
15 ``SessionMiddleware`` line from ``MIDDLEWARE_CLASSES`` and ``'django.contrib.sessions'``
16 from your ``INSTALLED_APPS``. It'll save you a small bit of overhead.