My sessions with devise timeout after 1-3 hours of non-use (not sure exactly how long). How can I adjust this?
I’ve looked over the docs and can’t seem to find a setting for this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look in config/initializers/devise.rb. There are a lot of configuration settings including
config.timeout_in. The default in my version is 30 minutes. You can also set it on the model itself:You can now also set the timeout dynamically.