Django: session database table cleanup

nemesisdesign picture nemesisdesign · Sep 4, 2011 · Viewed 23.1k times · Source

Does this table need to be purged or is it taken care automatically by Django?

Answer

Abid A picture Abid A · Sep 4, 2011

Django does NOT provide automatic purging. There is however a handy command available to help you do it manually: https://docs.djangoproject.com/en/dev/topics/http/sessions/#clearing-the-session-store

python manage.py clearsessions