Chris Lamb

django-force-logout

BlogProjectsAbout

View all my projects »

Framework to be able to forcibly log users out of Django projects.


This project provides the ability to log specific users out of your Django project.

Whilst you can easily log all users out by clearing your session table or similar blunt technique, due to the difficulty in enumerating specific user’s actual session entries from a user ID, logging-out troublemakers etc. is not really feasible “out of the box”.

You can iterate over all possible sessions and match them against a user, but with a heavy-traffic site with long-lasting sessions this can be prohibitively expensive.


If you are looking for a highly experienced full-stack Django developer with a track record of producing high-quality and maintaininable code, please get in touch.

You can install django-force-logout from PyPI:

$ pip install django-force-logout
… or by adding django-force-logout to your requirements.txt and re-running pip install -r requirements.txt.

You can browse the source tree, create or file bugs or download the code from Git:

$ git clone https://github.com/lamby/django-force-logout.git

django-force-logout is released under the MIT license.

View all my projects »