djangosnippets.org: Latest snippets tagged with 'logout'https://djangosnippets.org/tags/logout/2008-04-04T09:10:40.578355-05:00Login message middleware
2008-04-04T09:10:40.578355-05:00nipuLhttps://djangosnippets.org/snippets/683/<p>Uses the Message model in django.contrib.auth.models to display a welcoming login message.</p>
Freely redistributableClear session data on login and logout
2008-04-03T10:57:41.329092-05:00jb0thttps://djangosnippets.org/snippets/681/<p>This was born as a result of the fact that session data is shared across logins on a single browser. If you login as user1 and session data is stored, then login as user2 the same session data will be available to your application. Please see the ticket who's validity …</p>
Freely redistributableAuto Logout Middleware
2007-10-19T12:11:15.485023-05:00LuckiDoghttps://djangosnippets.org/snippets/449/<p>This Middleware is to log users out after a certain amount of time has passed. You'll want to add AUTO_LOGOUT_DELAY to your settings.py, set to a number of minutes after which a user should be logged out.</p>
<p>It adds the key 'last_touch' to the session, you'll want to change that …</p>
Freely redistributable