# New Feature

**URL:** <https://www.ruby-forum.com/t/new-feature/84072>\
**Category:** Engines Development\
**Created:** [March 20, 2006, 7:25am UTC](https://www.ruby-forum.com/t/new-feature/84072 "2006-03-20T07:25:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devender](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@devender](https://www.ruby-forum.com/u/devender)\
**Post date:** [March 20, 2006, 7:25am UTC](https://www.ruby-forum.com/t/new-feature/84072/1 "2006-03-20T07:25:50Z")

</div>

Greetings,

I recently started using the login engine, one the first things we  
needed  
was the ability for a user to click a “remember-me” type of check box  
and a  
cookie be set.

I was able to accomplish this in the login-engine with some very minor  
changes to the following code.

M app\models\user.rb (Added a new attribute, no need to save this  
in  
the database)  
M app\controllers\user\_controller.rb (Setting a cookie if the  
remember-me check box is checked)  
M app\views\user\login.rhtml (Added a check box )  
M lib\login\_engine\authenticated\_system.rb (Checking to see if  
there is  
a cookie and if there is, creating the user from it)

I have attached the code to this mail, do you think this is some feature  
that could be added to the login engine ?

---

<div class="post-metadata">

**Author:** ![devender](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@devender](https://www.ruby-forum.com/u/devender)\
**Post date:** [March 23, 2006, 2:26am UTC](https://www.ruby-forum.com/t/new-feature/84072/2 "2006-03-23T02:26:39Z")

</div>

If you’re familiar with the technique, wrapping this up as a  
diff/patch and creating a ticket for it in the Collaboa site would be  
greatly appreciated - [http://dev.rails-engines.org/](http://dev.rails-engines.org/)

You might also want to document how you went about developing this on  
the wiki, for the benefit of others.

Thanks - good work!

- james

On 3/20/06, Devender G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> the database)  
> Devender R. Gollapally  
> Cell: 972-741-5483  
> [http://jroller.com/page/dgolla](http://jroller.com/page/dgolla)
> 
> * * *
> 
> engine-developers mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org](http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org)

–

- J \*  
~
