To log out all users, you could delete all session files, though you would 
be destroying any active sessions. Unfortunately, when you delete a user, I 
don't think there is a good way to force logout that user. One option is to 
create an _after_delete callback for the auth_user table that creates a 
scheduled task to search through all the session files and delete the one 
that contains the ID of the deleted user.

Anthony

On Tuesday, May 12, 2015 at 3:04:22 PM UTC-4, A36_Marty wrote:
>
> Along the same lines, is there a way to log any/everyone out / even 
> force-expiring cookies for users who have selected the "remember me" login 
> option?
>
> I asked due to noticing an auth_user record can be deleted but they can 
> still access the system for functions decorated with @auth.requires_login
>
> Thanks in advance
>
> On Wednesday, September 17, 2014 at 8:06:51 PM UTC-5, Anthony wrote:
>>
>> See 
>> http://stackoverflow.com/questions/12218989/get-all-logged-in-users-web2py/12224157#12224157
>> .
>>
>> Anthony
>>
>> On Wednesday, September 17, 2014 8:48:22 PM UTC-4, Tito Garrido wrote:
>>>
>>> Hi Folks,
>>>
>>> Is there a way to list the current logged in users?
>>>
>>> Regards,
>>>
>>> Tito
>>>
>>> -- 
>>>
>>> Linux User #387870
>>> .........____
>>> .... _/_õ|__|
>>> ..º[ .-.___.-._| . . . .
>>> .__( o)__( o).:_______ 
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to