Keep track of Django user sessions.
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
pip install django-sessionprofile
Add "sessionprofile" to your INSTALLED_APPS
Add "sessionprofile.middleware.SessionProfileMiddleware" to the MIDDLEWARE setting, before Django’s SessionMiddleware
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)
| File | Size | Uploaded | |
|---|---|---|---|
| django-sessionprofile-3.0.0.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|