Cookies question


#1

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 M.
-> Ruby on Rails and Web D. Blog : http://source.mihelac.org