search for: check_cookies_second

Displaying 1 result from an estimated 1 matches for "check_cookies_second".

2006 Jan 07
2
can store array or hash in cookies?
...can use arrays, briliant. But.... It does not work (at least on webrick) I wrote a controller: def check_cookies_first cookies[:chef] = {:value => ["first", "second"], :expires => Time.local (2020)} render_text ":)" end def check_cookies_second begin render_text "cookies class is: " + cookies[:chef].class.to_s + " value: " + cookies[:chef] rescue Exception => e render_text "Why this don''t work? exception: " + e.to_s end end Started server: get chec...