On Mon, 5 Sep 2005, Yukihiro Matsumoto wrote: > Hi, > > Sorry for being late. > > In message "Re: Bug in cgi/session" > on Tue, 16 Aug 2005 01:25:47 +0900, Ken Brush <kbrush / gmail.com> 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. fyi - that's __unless__ you use cgi/session/pstore: harp:~ > cat a.rb require 'cgi' require 'cgi/session/pstore' STDIN.reopen '/dev/null' session = CGI::Session::new CGI::new, 'database_manager' => CGI::Session::PStore session['key'] = 0 p(session['key'] += 42) harp:~ > ruby a.rb 42 cheers. -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================