Forum: Ruby on Rails Reading cookies - weird problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
sreechand boppudi (Guest)
on 2006-02-15 18:40
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
This topic is locked and can not be replied to.