Keep track of Django user sessions
Project description
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.
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f1405c914a808ed9b646111096e6795fbbfe77148e0c4e9f6351209393b75cc |
|
MD5 | 6e2b44b7a6d24b97bc0c83b83c069627 |
|
BLAKE2b-256 | a8b850ad1ec991608d93d269b6535dc7884c1ebd0e89f198595e3707c17f201b |
File details
Details for the file django_sessionprofile-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_sessionprofile-3.0.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a16d91ac0463176287829c7c9efbbaf74c22db5d94e5496c711b8d2b6e92d5 |
|
MD5 | 6ad0e0f7dee309ba86322c7da51494d4 |
|
BLAKE2b-256 | ed5af62eb444dd3f66f5246e3015295ca99787a750d51cbd2e21fd277db71247 |