I have rails 3 app. I want to be able to kill the user session or to log out after 30 min of not using the app or when the site is closed, and redirect to my login page with some alert. What is the best way to do that? Is there a gem to do this?
Thanks
If you are using Devise, you can use the Timeout Table to expire user sessions.