From: Yukihiro Matsumoto Date: 2005-09-05T02:29:04+09:00 Subject: Re: Bug in cgi/session Hi, Sorry for being late. In message "Re: Bug in cgi/session" on Tue, 16 Aug 2005 01:25:47 +0900, Ken Brush writes: |Here's the test case I'm using: They are not bugs in cgi/session. * session data should be strings; non string values are converted using to_s in 1.8, so that session['cart'] ||= Hash.new(0) won't work. You need to pack it explicitly, perhaps using Marshal. * cgi.params returns arrays, since there's possibility of multiple values for a form id. If you want to use first value, try cgi.params["id"][0]. * since session data are strings session['cart'][cgi.params["id"][0]] += 1 would not work. matz.