Re: Logging out a user when his account is made inactive

2009-04-02 Thread Malcolm Tredinnick
On Wed, 2009-04-01 at 14:13 -0700, christian.oudard wrote: > I have made a page for admins to set a user account to inactive, but I > noticed that the user's session continues if he is logged in. It > appears that the is_active field is only checked when the user logs > in, not when each request i

Logging out a user when his account is made inactive

2009-04-01 Thread christian.oudard
I have made a page for admins to set a user account to inactive, but I noticed that the user's session continues if he is logged in. It appears that the is_active field is only checked when the user logs in, not when each request is authenticated. Is there an easy way to log a user out when his ac