forked from subhranath/django-session-idle-timeout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
15 lines (12 loc) · 906 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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/)
- Place the checked out 'sessions' directory in your project.
- Make the following entries in your 'settings.py' project module.
- Append an entry to the MIDDLEWARE_CLASSES as 'sessions.middleware.SessionIdleTimeout', at the bottom.
- Add 'sessions' to INSTALLED_APPS. (Optional)
- Add a entry named 'SESSION_IDLE_TIMEOUT' to specify the idle timeout period, in seconds.
That's it, you will receive a session timeout message using the Django message framework in your templates.