Skip to main content

Keep track of Django user sessions

Project description

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.

Usage and installation

Cheat sheet

  1. pip install django-sessionprofile

  2. Add "sessionprofile" to your INSTALLED_APPS

  3. Add "sessionprofile.middleware.SessionProfileMiddleware" to the MIDDLEWARE setting, before Django’s SessionMiddleware

  4. python manage.py migrate

Full instructions

See the documentation for more information, with more code-examples and context.

Credits

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-sessionprofile-3.0.0.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

django_sessionprofile-3.0.0-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page