django-sessionprofile

Keep track of Django user sessions.

Build status Code quality checks black Coverage status Documentation Status

python-versions django-versions pypi-version

django-sessionprofile is a library to track which user a django session belongs to. Possible useful scenario’s for this information include:

  • Single-Sign-On (SSO) between different applications that can read Django’s session cookie (same-origin setup)

  • Single Logout (SLO) initiated in another application, triggering logout in yours

  • Audit trail and security - allowing you to manage user sessions on other devices.

Features

  • Django model to store user sessions

  • Middleware to keep track of sessions

  • Pluggable backends similar to Django’s session backends

  • Management command to clear stale data

Credits

Many thanks go to Resolver Systems Ltd (now part of PythonAnywhere) who made the initial version of this library, specifically aimed at phpBB3.

Indices and tables