# Cookie based flash

**URL:** <https://www.ruby-forum.com/t/cookie-based-flash/109261>\
**Category:** Rails\
**Created:** [July 12, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/cookie-based-flash/109261 "2007-07-12T21:33:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [July 12, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/cookie-based-flash/109261/1 "2007-07-12T21:33:12Z")

</div>

I’ve got a Rails app in which I do not need to use sessions, with one  
exception: I want to use RoR flash.

Now, I much prefer to use true stateless client-server, thus avoiding  
the hassle of dealing with server-side session information. And I’ve  
successfully set up my application accordingly. I’m guessing there’s  
some way to completely disable RoR sessions (though if you want to  
point me in the right direction, it would save me some research  
time 🙂 ).

But I do want to use flash.

It strikes me that it would be easy to implement flash using a cookie,  
especially since I’m only using it for limited things that I would  
happily put in that cookie. It also strikes me that someone else may  
already have written a plug-in to do this. But I can’t seem to find  
such a thing.

Anyone know of such a beast? Or should I just go ahead and try to  
write one on my own?

Thanks,  
Joe D.

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [July 12, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/cookie-based-flash/109261/2 "2007-07-12T23:23:24Z")

</div>

On 7/12/07, Joe D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve got a Rails app in which I do not need to use sessions, with one  
> exception: I want to use RoR flash.

Joe, what if you re-enabled sessions, but used the cookie session  
store? There’s been a lot of discussion about the merits of the cookie  
store, especially around security, but it sounds pretty much perfect  
for what you’re wanting to do. Note, though, that the cookie store is  
on trunk.

~ j.

---

<div class="post-metadata">

**Author:** ![joe-dumoulin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9dc877/32.png) [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Post date:** [July 13, 2007, 4:02am UTC](https://www.ruby-forum.com/t/cookie-based-flash/109261/3 "2007-07-13T04:02:55Z")

</div>

You are right - that is exactly what I want. Thanks for pointing it  
out.

Any idea when it is going to be in a production-quality release?  
We’re not deploying for a while yet, and I would surely like to wait  
until this is available.

Thanks,  
Joe
