Skip to main content

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.

Metadata

Release files for django-sessionprofile 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sessionprofile 3.0.0
File Size Uploaded
django-sessionprofile-3.0.0.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sessionprofile 3.0.0
File Interpreter ABI Platform
django_sessionprofile-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / django-sessionprofile-3.0.0.tar.gz

Download URL django-sessionprofile-3.0.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0f1405c914a808ed9b646111096e6795fbbfe77148e0c4e9f6351209393b75cc
BLAKE2b-256 checksum
How to use checksums
a8b850ad1ec991608d93d269b6535dc7884c1ebd0e89f198595e3707c17f201b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / django_sessionprofile-3.0.0-py3-none-any.whl

Download URL django_sessionprofile-3.0.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73a16d91ac0463176287829c7c9efbbaf74c22db5d94e5496c711b8d2b6e92d5
BLAKE2b-256 checksum
How to use checksums
ed5af62eb444dd3f66f5246e3015295ca99787a750d51cbd2e21fd277db71247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.0.0

2 release files

1.0

2 release files

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page