# Cookies

**URL:** <https://www.ruby-forum.com/t/cookies/97349>\
**Category:** Radiant CMS\
**Created:** [July 6, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/cookies/97349 "2006-07-06T15:13:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [July 6, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/cookies/97349/1 "2006-07-06T15:13:08Z")

</div>

Hey guys

Just thinking about doing something… If I had a radient site, which I  
do,  
how could I then do something dynamic based on a cookie value, I guess I  
would have to build some radius tag or a behaviour to handle it wouldn’t  
I?

Has anyone ever tried this?

Thanks

Tim

* * *

This e-mail has been scanned for all viruses by Star. The  
service is powered by MessageLabs. For more information on a proactive  
anti-virus service working around the clock, around the globe, visit:  
[http://www.star.net.uk](http://www.star.net.uk)

---

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [July 6, 2006, 10:52pm UTC](https://www.ruby-forum.com/t/cookies/97349/2 "2006-07-06T22:52:01Z")

</div>

Tim P. wrote:

> Just thinking about doing something… If I had a radient site, which I do,  
> how could I then do something dynamic based on a cookie value, I guess I  
> would have to build some radius tag or a behaviour to handle it wouldn’t I?

A behavior might be a good way to handle this. Using behaviors you can  
access the same request and response objects that ActionController has  
access to. Take a look at Behavior::Base#process to see how it works.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
