# Using the new cookie-based sessions

**URL:** <https://www.ruby-forum.com/t/using-the-new-cookie-based-sessions/112201>\
**Category:** Rails\
**Created:** [August 16, 2007, 9:56am UTC](https://www.ruby-forum.com/t/using-the-new-cookie-based-sessions/112201 "2007-08-16T09:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [August 16, 2007, 9:56am UTC](https://www.ruby-forum.com/t/using-the-new-cookie-based-sessions/112201/1 "2007-08-16T09:56:24Z")

</div>

Hi all,

I’m just about to deploy my first big site, and i want to use the new  
cookie-based sessions, instead of pstore or mysql sessions, as i’ve  
read about here: [http://dev.rubyonrails.org/changeset/6184](http://dev.rubyonrails.org/changeset/6184)

Any tips how i’d do this? What files do i need to copy into my rails  
app directory?

Thanks a million guys

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [August 16, 2007, 10:02am UTC](https://www.ruby-forum.com/t/using-the-new-cookie-based-sessions/112201/2 "2007-08-16T10:02:25Z")

</div>

More details are here:

[http://ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-cookie-based-sessions](http://ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-cookie-based-sessions)

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [August 17, 2007, 6:55am UTC](https://www.ruby-forum.com/t/using-the-new-cookie-based-sessions/112201/3 "2007-08-17T06:55:11Z")

</div>

Never mind, figured it out myself.  
What i did, was to create a new rails project, then install subversion,  
then download edge rails into my vendor/rails folder. Then i copied this  
into the folder of my existing app, and set up environment.rb with the  
cookiestore settings.  
Pretty happy with this - share nothing scaling is a beautiful, simple  
thing.
