From: Brian Candler Date: 2009-08-08T05:52:23+09:00 Subject: Re: CGI::Session just don't work 7stud -- wrote: > Also: > > result = "hello"[0] > puts result No, the OP is correct. In the CGI library, cgi['foo'] is an array. This is to allow for usage such as /myprogram.cgi?foo=123&foo=456 However, the next line should probably say sess["bgcolor"] = cgi['bgcolor'][0] or else later on, cgi.body ("bgcolor" => sess["bgcolor"][0]){ But as to the problem with CGI::Session: I'm afraid it's a very long time since I bothered with rhtml or CGI, and I'm not sure that mod_ruby has had much care and attention. These days I think you'll find that most people write Rack applications (Rails and Sinatra are both layers on top of Rack), so Rack's session-handling is much more widely tested. Deploying a Rails or Sinatra application under Apache is very easily done with Phusion Passenger. -- Posted via http://www.ruby-forum.com/.