Forum: Ruby on Rails Cookies question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bojan M. (Guest)
on 2007-06-06 17: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 M.
-> Ruby on Rails and Web D. Blog :
This topic is locked and can not be replied to.