# Cookies not storing?

**URL:** <https://www.ruby-forum.com/t/cookies-not-storing/139598>\
**Category:** Rails\
**Created:** [June 5, 2008, 10:36am UTC](https://www.ruby-forum.com/t/cookies-not-storing/139598 "2008-06-05T10:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [June 5, 2008, 10:36am UTC](https://www.ruby-forum.com/t/cookies-not-storing/139598/1 "2008-06-05T10:36:00Z")

</div>

hi, got an annoying problem with my cookies, can’t get them to store to  
the browser, even though the the browser is set to accept all cookies  
and the code runs thru ok,

def index  
cookie[:hello] = “something”  
end

index.html.erb  
\<%=cookie[:hello]%\>

any ideas?

i’m also storing the session data in the database if that’s a problem?
