开发者

devise config.timeout_in not working

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜