NoamB/sorcery — Issue #162: How to let the application log out an inactive user ?
Author: Marmolin
Created: 2011-11-27 12:07:50+00:00
State: open

I would like to have my application to log out an inactive user and present a specific logout view, but I see now way to do so

When a user becomes inactive according to the configured limit, current_user returns nil.
I implemented a periodically remote function that calls a controller action that asks if current user is nil and then logs out the user
but this fails as the last_activity_time is updated at each request

However, then I cannot see how to log out an inactive user as any controller action or ajax call, i.e request, will update the last_activity_time if the user is logged_in?

I something missing in sorcery or is it just me that do not know how to use sorgery ?
The problem would be solved if sorgery could be configured to not register activity when named action is called