Forum: Ruby on Rails Cookies question

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.
866edcb271e88be4bfd935eea7947730?d=identicon&s=25 Bojan Mihelac (Guest)
on 2007-06-06 15:48
(Received via mailing list)
Hello all,

I had some problems with setting and getting array from cookie in
controller. I concluded that cookies[] would get just a first value if a
cookie is array, while request.cookies[] would get whole array:

cookies[:arr_cookie] [1,2]
cookies[:arr_cookie] #1
request.cookies[:arr_cookie] = #[1,2]

Is this normal behaviour and if it is, can anyone explain what are
reasons for that (performance?, simplicity?)

best regards,
Bojan


--
Bojan Mihelac
-> Ruby on Rails and Web Developer Blog : http://source.mihelac.org
This topic is locked and can not be replied to.