# "Remember Me" feature

**URL:** <https://www.ruby-forum.com/t/remember-me-feature/151931>\
**Category:** Deployment\
**Created:** [October 28, 2008, 2:28am UTC](https://www.ruby-forum.com/t/remember-me-feature/151931 "2008-10-28T02:28:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thabenksta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/97f17d/32.png) [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Post date:** [October 28, 2008, 2:28am UTC](https://www.ruby-forum.com/t/remember-me-feature/151931/1 "2008-10-28T02:28:05Z")

</div>

I realize this has probably been asked on these forums before but I  
wanted to get the latest information on what’s available.

We need to implement the typical “Remember Me” checkbox feature you find  
for logins on various site.

What’s the best way to do this in Rails 1.2.x and 2.x? Should we use  
cookies[] directly? Or, can I use session[]? We need this “remember  
me” to be around for at least 2 weeks, maybe even forever (till they  
logout).

Thanks.

---

<div class="post-metadata">

**Author:** ![thabenksta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/97f17d/32.png) [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Post date:** [October 28, 2008, 4:57am UTC](https://www.ruby-forum.com/t/remember-me-feature/151931/2 "2008-10-28T04:57:09Z")

</div>

Use cookies, enable the cookies for two weeks. Session should not be  
used  
here.

On Tue, Oct 28, 2008 at 6:58 AM, Ben K. \<

---

<div class="post-metadata">

**Author:** ![thabenksta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/97f17d/32.png) [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Post date:** [October 28, 2008, 5:48am UTC](https://www.ruby-forum.com/t/remember-me-feature/151931/3 "2008-10-28T05:48:35Z")

</div>

## You can look at how restful\_authentication, [http://github.com/technoweenie/restful\_authentication](http://github.com/technoweenie/restful_authentication) does it and that should give you a clue.

Ryan B.  
Freelancer

> **[frozenplague.net](http://frozenplague.net)**
>
> This domain may be for sale!
