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.

Project details


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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-sessionprofile-3.0.0.tar.gz.

File metadata

  • Download URL: django-sessionprofile-3.0.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for django-sessionprofile-3.0.0.tar.gz
Algorithm Hash digest
SHA256 0f1405c914a808ed9b646111096e6795fbbfe77148e0c4e9f6351209393b75cc
MD5 6e2b44b7a6d24b97bc0c83b83c069627
BLAKE2b-256 a8b850ad1ec991608d93d269b6535dc7884c1ebd0e89f198595e3707c17f201b

See more details on using hashes here.

File details

Details for the file django_sessionprofile-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sessionprofile-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 73a16d91ac0463176287829c7c9efbbaf74c22db5d94e5496c711b8d2b6e92d5
MD5 6ad0e0f7dee309ba86322c7da51494d4
BLAKE2b-256 ed5af62eb444dd3f66f5246e3015295ca99787a750d51cbd2e21fd277db71247

See more details on using hashes here.

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