Reading cookies - weird problem

Hello All,
I set a cookie with the following code -
cookies[:test1] = “abc”

…and when I try to read it with @cookies[:test1] in one of my views, I
get a nil string. The only thing that seems to work is

@cookies[“test1”].value

Has anyone run into similar issue?

Thanks

  • Sree