Skip to content

A Django middleware application to timeout a logged in user session after a specified time period

Notifications You must be signed in to change notification settings

subhranath/django-session-idle-timeout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

About

A Django middleware application to timeout a logged in user session after a specified time period

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages