Provides client- and server-side session timeout enforcement with configurable warnings. v2.6.8 requires Python >=3.10 and Django >=3.2. Maintenance branch with infrequent releases.
pip install django-session-securityVerified import paths — ran on the pinned version, not inferred.
Add app and middleware to settings. Run manage.py migrate if using the model backend.
Use `SESSION_SECURITY_EXPIRE_AFTER` instead of legacy setting.
Use mixin-based approach: `from session_security.views import SessionSecurityMixin`.
Ensure `SessionSecurityMiddleware` is placed after `AuthenticationMiddleware` and before `SessionMiddleware`.
Add `SESSION_SECURITY_EXPIRE_AFTER = 600` (or another integer) in settings.
Use `from session_security.middleware import SessionSecurityMiddleware`.
Add `'session_security.middleware.SessionSecurityMiddleware'` after `AuthenticationMiddleware` and before `SessionMiddleware`.