I am unable to timeout session with devise session timeout in initializers/devise.rb
I set
config.timeout_in = 1.minu开发者_开发百科te
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
You need to include :timeoutable
in your Model, i.e.
devise :timeoutable
http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Timeoutable
The timeout_in and remember_me will not work together.
Timeoutable incompatible with the remember_me checkbox. You can have one, but not both.
精彩评论