# "remember me" checkbox

**URL:** <https://www.ruby-forum.com/t/remember-me-checkbox/80514>\
**Category:** Rails\
**Created:** [December 28, 2006, 3:50am UTC](https://www.ruby-forum.com/t/remember-me-checkbox/80514 "2006-12-28T03:50:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chadster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@chadster](https://www.ruby-forum.com/u/chadster)\
**Post date:** [December 28, 2006, 3:50am UTC](https://www.ruby-forum.com/t/remember-me-checkbox/80514/1 "2006-12-28T03:50:42Z")

</div>

Is there any way to set the session expiration from the controller? I  
can do it from the environment file but not in the code…

I want to implement a “remember me” checkbox at the login…

Thanks,  
Chad

---

<div class="post-metadata">

**Author:** ![chadster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@chadster](https://www.ruby-forum.com/u/chadster)\
**Post date:** [December 28, 2006, 12:17pm UTC](https://www.ruby-forum.com/t/remember-me-checkbox/80514/2 "2006-12-28T12:17:38Z")

</div>

On 28 Dec 2006, at 03:49, Chad A. wrote:

> Is there any way to set the session expiration from the controller? I  
> can do it from the environment file but not in the code…
> 
> I want to implement a “remember me” checkbox at the login…

Generate a new rails app (name it “testapp” or something), then  
install the acts\_as\_authenticated plugin and follow the instructions  
at [http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated](http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated)

This plugin has everything you need and even more.

The remember me option uses a cookie btw.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![chadster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/46a35a/32.png) [@chadster](https://www.ruby-forum.com/u/chadster)\
**Post date:** [December 28, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/remember-me-checkbox/80514/3 "2006-12-28T18:16:58Z")

</div>

thanks for pointing me to that.
