Skip to content
Logs all session activity, based on now inactive project.
Python HTML Makefile
Branch: master
Clone or download
Pull request Compare This branch is 14 commits ahead of dryan:master.
Latest commit 470cd64 Jun 14, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo_app rebranding Jun 14, 2017
session_log fix no-middleware usecase Jun 14, 2017
tests/templates final rebranding Jun 14, 2017
.gitattributes Update git files Jan 23, 2014
.gitignore add support for latest django Jun 14, 2017
AUTHORS.rst Add @thijstriemstra to contributors Feb 10, 2014
HISTORY.rst rebranding Jun 14, 2017
LICENSE Prepare django app package and add readme Jan 23, 2014 add makefile Jun 14, 2017
Makefile add makefile Jun 14, 2017 final rebranding Jun 14, 2017
setup.cfg Prepare django app package and add readme Jan 23, 2014 fix no-middleware usecase Jun 14, 2017


Logs all sessions and sign-outs. Originally developed at [ software shop].


  • logging all sessions permanently
  • logging off remote sessions
  • logging of IP addresses and browser info


Basic Installation that will provide you with admin view of all session logs:

  1. Include django-session-log in your requirements.txt file.
  2. Add session_log to INSTALLED_APPS and migrate db.

Optionally you can add view that lets your users see all of their active sessions and log out them.

  1. Add session_activity.middleware.SessionActivityMiddleware to MIDDLEWARE_CLASSES after the django.contrib.sessions.middleware.SessionMiddleware and django.contrib.auth.middleware.AuthenticationMiddleware middleware classes. This step is optional and only required if you intend user to be able to see all his active sessions and log out them

  2. Add url config for session list and sign-out views:

    url(r'^sessions/', include('session_activity.urls')),

    Then link to the main view using {% url "session_activity_list" %} template tag.

  3. Optionally copy & modify the session_list.html template to match your look and feel expectations.


django-session-log depends on django>=1.11.2, django-appconf>=0.6 and python-dateutil.


There’s also an instant demo example that can be run from the cloned repository:

./ migrate
./ runserver


django-session-log is released under the MIT license.

Other Resources

You can’t perform that action at this time.