ruby on rails - Devise Remember Me and Sessions -


i'm confused devise gem config settings:

  # time user remembered without asking credentials again.   config.remember_for = 2.weeks    # time want timeout user session without activity. after   # time user asked credentials again.   config.timeout_in = 10.minutes 

i want have user select "remember me" checkbox (i.e., keep me logged in), default session timeout 10 minutes. after 10 minutes asks me log in again though have clicked "remember me". if true remember_for meaningless. i'm missing here.

the timeout_in automatically log out within 10 minutes of inactivity , incompatible remember_me checkbox. can have one, not both.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -