Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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.

Release history Release notifications

History Node

1.4.2

History Node

1.4.0

History Node

1.3.1

History Node

1.3.0

History Node

1.2.0

History Node

1.1.5

This version
History Node

1.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_session_idle_timeout-1.0.1-py2.7.egg (3.7 kB) Copy SHA256 hash SHA256 Egg 2.7 Jun 27, 2012
django-session-idle-timeout-1.0.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Jun 27, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page