You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a Sinatra App in which I am using Warden for managing authentication. Please note that I am not using Devise at all. I am in need of a Session Timeout Hook which gets called when session expires as I need to clear-up certain things and do some custom operations.
I also would like to mention that I am using Rack::Session::Dalli as well.
Any ideas how to achieve it?
The text was updated successfully, but these errors were encountered:
Warden does not implement session timeout on its own. So there isn't a hook. So what is expiring the session? Or do you want to implement session timeout?
Devise implements it by storing and checking the last time a request happend in Warden.after_set_user hook. If it happens that the user last request happened more than a specified time, you call throw :warden from the hook.
I am working on a Sinatra App in which I am using Warden for managing authentication. Please note that I am not using Devise at all. I am in need of a Session Timeout Hook which gets called when session expires as I need to clear-up certain things and do some custom operations.
I also would like to mention that I am using Rack::Session::Dalli as well.
Any ideas how to achieve it?
The text was updated successfully, but these errors were encountered: