cookies not storing?

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?