0

How can I implement a "Remember Me" feature using Warden?

I've looked at the remember me strategy that Devise (based on Warden) uses but have no clue how to adapt that to my barebones warden authentication.

Jacob
  • 6,317
  • 10
  • 40
  • 58
  • Its pretty straight forward - create a signed cookie with the serialized user (the user ID), and an expiry date. When you authenticate you check the session for a user first. https://github.com/plataformatec/devise/blob/e54326c19c68f10df2548fcaaab411e93178b279/lib/devise/controllers/rememberable.rb Maybe if you add some code with your Warden strategy we can give you some more concrete advice. – max May 02 '15 at 07:32
  • possible duplicate of [remember\_me with warden](http://stackoverflow.com/questions/4461984/remember-me-with-warden) – Alter Lagos Aug 21 '15 at 14:42

0 Answers0