Auto logout a user after specific time in Django
Project description
Auto logout a user after specific time in Django.
Works with Python ≥ 3.7, Django ≥ 3.0.
Installation
pip install django-auto-logout
Append to settings middlewares:
MIDDLEWARE = (
...
'django_auto_logout.middleware.auto_logout',
)
Limit session time
Logout a user after 3600 seconds (hour) from the last login.
Add to settings:
AUTO_LOGOUT = {'SESSION_TIME': 3600}
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
File details
Details for the file django-auto-logout-0.1.1.tar.gz
.
File metadata
- Download URL: django-auto-logout-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a2192004c969c078185978739418c1535ce300fcdf135131b71d050eb6a5dd |
|
MD5 | 9d94be7b612caad5eac95e36086ff0d4 |
|
BLAKE2b-256 | 4fa63381054dfc9184a400128fac863582ac162a9f40f51c3079650ce8a6f95d |