# Active\_record\_store for cookies?

**URL:** <https://www.ruby-forum.com/t/active-record-store-for-cookies/158921>\
**Category:** Rails\
**Created:** [January 29, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/active-record-store-for-cookies/158921 "2009-01-29T13:45:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tekhne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/90ced4/32.png) [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Post date:** [January 29, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/active-record-store-for-cookies/158921/1 "2009-01-29T13:45:16Z")

</div>

By setting config.action\_controller.session\_store  
to :active\_record\_store in environment.rb the sessions just become  
references to records stored on the server and do not hold any ‘real’  
data. Is there any way to have cookies (of the non session variety)  
use the same mechanism?

Failing that is there a secure way to encrypt a cookie?
