skip to navigation
skip to content

Not Logged In

django-session-idle-timeout 1.0.1

Timeout a logged user after a period of time

Latest Version: 1.3.1

A Django middleware application to timeout a logged in user session after a specified time period.

Installation instructions

Make sure the following Django apps/middlewares are enabled.

Install django-session-idle-timeout

easy_install django-session-idle-timeout

Update the MIDDLEWARE_CLASSES on the settings.py. Add the sessions.middleware.SessionIdleTimeout at the bottom.

MIDDLEWARE_CLASSES = (
... 'sessions.middleware.SessionIdleTimeout', )

Update the INSTALLED_APPS. Add 'sessions'.

Add a new entry named 'SESSION_IDLE_TIMEOUT', and specify the idle timeout period, in seconds. The default value is 30min.

SESSION_IDLE_TIMEOUT = 1800

That's it, you will receive a session timeout message using the Django message framework in your templates.

 
File Type Py Version Uploaded on Size
django-session-idle-timeout-1.0.1.tar.gz (md5) Source 2012-06-27 2KB
django_session_idle_timeout-1.0.1-py2.7.egg (md5) Python Egg 2.7 2012-06-27 3KB
  • Downloads (All Versions):
  • 6 downloads in the last day
  • 93 downloads in the last week
  • 589 downloads in the last month