Re: How to log out a user

2014-08-12 Thread Nikolas Stevenson-Molnar
Unfortunately, you can't look up sessions by user, so you've have to load every active session and see if its for the user you wish to logout. Alternatively, you could create your own mapping of users to sessions, or add some middleware that verifies the user is active on every request, and signs t

Re: How to log out a user

2014-08-12 Thread François Schiettecatte
You should take a look at sessions: https://docs.djangoproject.com/en/1.7/topics/http/sessions/ You can arbitrarily remove sessions regardless of expiration which will log out the user. François On Aug 12, 2014, at 2:32 PM, Torsten Bronger wrote: > Hallöchen! > > I know that there

How to log out a user

2014-08-12 Thread Torsten Bronger
Hallöchen! I know that there is a logout(request) routine, but how to program a logout(user) routine? Background: Every night, a cronjob iterates over all active users in our Django deployment and checks whether they can still be found in our LDAP directory. Every user that is not found anymore