Skip to main content

Timeout a logged user after a period of time

Project description

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.

Important

This is a for of http://github.com/subhranath/django-session-idle-timeout

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-session-idle-timeout-1.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

django_session_idle_timeout-1.0.1-py2.7.egg (3.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page