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.
Authentication (http://docs.djangoproject.com/en/dev/topics/auth/)
Sessions (http://docs.djangoproject.com/en/dev/topics/http/sessions/)
Messages framework (http://docs.djangoproject.com/en/dev/ref/contrib/messages/)
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
Built Distribution
Hashes for django-session-idle-timeout-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089fae0c5068602f774cfbada3af5e61d6cd8275bde0a220646216a80b8733ef |
|
MD5 | 5807a449674f6bf46ee3413ace4135b4 |
|
BLAKE2b-256 | 576467cea3147c5d2425043b6ca23a1f423f69bb8721241f5a0215a9116c6e5e |
Hashes for django_session_idle_timeout-1.0.1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb17c07520a1ee8548c6daa2f5b9cfff3e0cf819fa433ad42b3361d9a4ff83d0 |
|
MD5 | 7b8510afac64214b68873818a5024e0c |
|
BLAKE2b-256 | 63de88b96bec09b9d10f2bf4da911cc87419c0c393ca3d5be5b6a0b52834eabd |