{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/4"}],"enrichment":{"capability":"Adds automatic session expiration to Django applications, allowing sessions to expire after a fixed duration or period of inactivity.","skillfed_tags":["django-middleware","session-management","security"],"use_cases":["Enforce security policies requiring user sessions to expire after a fixed time period in web applications.","Log out inactive users automatically to reduce unauthorized access risk in shared or public-facing systems.","Implement inactivity-based timeouts that reset on user activity to balance security with user experience.","Redirect expired sessions to a login page or custom endpoint for graceful session termination.","Group activity timestamps by different periods to reduce database load while tracking user inactivity."],"what_it_does":"django-session-timeout is a Django middleware that enforces automatic session expiration based on time. It adds timestamp tracking to sessions and can expire them either after a fixed duration from session creation or after a period of user inactivity. The middleware integrates into Django's standard session framework and requires minimal configuration\u2014just adding it to MIDDLEWARE_CLASSES and setting SESSION_EXPIRE_SECONDS.\n\nThe package supports flexible expiration strategies: you can track inactivity with optional grace-period grouping to reduce database writes, and redirect expired sessions to a custom URL. It depends on Django and six, making it lightweight and compatible with existing Django projects.","worth_installing":"Yes. The package is stable, actively maintained, has low install friction, carries no known vulnerabilities, and solves a common Django security need. MIT licensing imposes no restrictions. Install it if you need automatic session expiration; the configuration is straightforward and the middleware integrates cleanly into Django's standard session handling."},"id":"django-session-timeout","links":{"html":"https://skillfed.io/packages/django-session-timeout","md":"https://skillfed.io/packages/django-session-timeout.md","pypi":"https://pypi.org/project/django-session-timeout/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2020-03-08","license_spdx":null,"license_treatment":"permissive","name":"django-session-timeout","python_support":"unspecified","summary":"Middleware to expire sessions after specific amount of time"},"popularity":{"monthly_downloads":77369,"position":14531,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.0"}
