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 details)

Uploaded Source

Built Distribution

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

Uploaded Source

File details

Details for the file django-session-idle-timeout-1.0.1.tar.gz.

File metadata

File hashes

Hashes for django-session-idle-timeout-1.0.1.tar.gz
Algorithm Hash digest
SHA256 089fae0c5068602f774cfbada3af5e61d6cd8275bde0a220646216a80b8733ef
MD5 5807a449674f6bf46ee3413ace4135b4
BLAKE2b-256 576467cea3147c5d2425043b6ca23a1f423f69bb8721241f5a0215a9116c6e5e

See more details on using hashes here.

File details

Details for the file django_session_idle_timeout-1.0.1-py2.7.egg.

File metadata

File hashes

Hashes for django_session_idle_timeout-1.0.1-py2.7.egg
Algorithm Hash digest
SHA256 bb17c07520a1ee8548c6daa2f5b9cfff3e0cf819fa433ad42b3361d9a4ff83d0
MD5 7b8510afac64214b68873818a5024e0c
BLAKE2b-256 63de88b96bec09b9d10f2bf4da911cc87419c0c393ca3d5be5b6a0b52834eabd

See more details on using hashes here.

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