{"categories":[{"label":"Security","url":"https://skillfed.io/packages/category/security/3"}],"enrichment":{"capability":"Replaces Django's opaque session backend with queryable ORM objects tied to users, letting you list active sessions, log out users globally, and access IP and user-agent data.","skillfed_tags":["django-sessions","user-management","authentication"],"use_cases":["Display a list of all active sessions for a user in account settings, showing device, IP, and last activity.","Implement a 'log out everywhere' button that terminates all of a user's sessions at once.","Query and audit session data for security monitoring or compliance reporting.","Build admin dashboards that show active user sessions across your application.","Detect and revoke suspicious sessions based on IP address or user-agent anomalies."],"what_it_does":"Django User Sessions converts Django's built-in session system\u2014which stores all data in opaque base64-encoded blobs\u2014into first-class ORM objects linked to user accounts. This lets you query, filter, and manage sessions like any other Django model. The package stores IP address and user-agent information alongside session data, enabling you to display active sessions to users or administrators and perform bulk operations like logging a user out across all devices.\n\nIt's a drop-in replacement for Django's standard session backend, requiring only Django as a runtime dependency. The package supports Django 3.2 and 4.0 on Python 3.7, 3.8, 3.9 and 3.10. Common operations include filtering a user's active sessions by expiration date and deleting all sessions for a user in a single call.","worth_installing":"Yes. This is a mature, actively maintained package (Production/Stable status, 719 GitHub stars) that solves a real Django limitation with zero security vulnerabilities and minimal install friction. Use it if you need per-user session visibility or multi-device logout; skip it if you have no need to query or manage sessions programmatically."},"id":"django-user-sessions","links":{"html":"https://skillfed.io/packages/django-user-sessions","md":"https://skillfed.io/packages/django-user-sessions.md","pypi":"https://pypi.org/project/django-user-sessions/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2022-12-13","license_spdx":null,"license_treatment":"permissive","name":"django-user-sessions","python_support":"unspecified","summary":"Django sessions with a foreign key to the user"},"popularity":{"monthly_downloads":95197,"position":13281,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
