Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated docs for Sessions

  • Loading branch information...
commit d270b26f288632a47bb3e75d17a2c7b22638115d 1 parent 8f88914
@tricoder42 tricoder42 authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 docs/topics/http/sessions.txt
View
12 docs/topics/http/sessions.txt
@@ -460,9 +460,15 @@ table. Django updates this row each time the session data changes. If the user
logs out manually, Django deletes the row. But if the user does *not* log out,
the row never gets deleted.
-Django provides a sample clean-up script: ``django-admin.py cleanup``.
-That script deletes any session in the session table whose ``expire_date`` is
-in the past -- but your application may have different requirements.
+.. versionadded:: 1.5
+
+There is simple clean-up script in ``django-admin.py cleansessions``. That
+script deletes any session in the session table whose ``expire_date`` is in
+the past -- but your application may have different requirements.
+
+Another way is to run ``bin/daily_cleanup.py`` which clean out old data from
+the database. Only ``django-admin.py cleansessions`` command is called at
+the moment.
Settings
========
Please sign in to comment.
Something went wrong with that request. Please try again.