How to set up in the rails application that if any user is idle for 30 minutes or a specific period of time he should be automatically get logged out.
Can any one give any solution . i am using devise for authentication purpose. Any help is appreciated .
How to set up in the rails application that if any user is idle
Share
You should use
Timeoutablemodel trait.In your model you need
Also, take a look at
config/initializers/devise.rb, you can configure timeout value there.