I am unable to timeout session with devise session timeout in initializers/devise.rb
I set
config.timeout_in = 1.minute
in initializers/devise.rb and i signin with one user and stayed idle for 2 minutes. This is suppose to invalidate current session and again prompt to ask for user credentials but the session never dies.
Am i doing something wrong or missing anything?
Thanks
The timeout_in and remember_me will not work together.
Timeoutable incompatible with the remember_me checkbox. You can have one, but not both.
You need to include :timeoutable
in your Model, i.e.
devise :timeoutable
http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Timeoutable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With