Implementation of “Remember me” in a Rails application

前端 未结 7 1036
旧时难觅i
旧时难觅i 2020-12-24 05:11

My Rails-app has a sign in box with a \"remember me\" checkbox. Users who check that box should remain logged in even after closing their browser. I\'m keeping track of whet

7条回答
  •  再見小時候
    2020-12-24 05:40

    I would suggest that you either take a look at the RESTful_Authentication plug in, which has an implementation of this, or just switch your implementation to use the RESTful Authentication_plugin. There is a good explanation about how to use this plug in at Railscasts:

    railscasts #67 restful_authentication

    Here is a link to the plugin itself

    restful_authentication

提交回复
热议问题