..
#command-line

How to Clear Session Django

To clear a Django Session, run:

python manage.py clearsessions

In production, add the script to the crontab tab:

crontab -e
0 2 * * 0 source /var/www/phoenix/bin/activate && python manage.py clearsessions

This script will run at 2AM every sunday