From: Cere Davis Date: 2004-07-15T06:27:19+09:00 Subject: Re: cgi session management is foobar Ok, I figured it out. I needed to flush stdout and close the session. ;) Cere Davis wrote: > If I just do: > > require 'cgi' > require 'cgi/session' > > cgi = CGI.new("html3") > sess = CGI::Session.new(cgi, > "new_session" => true, > "session_key" => "rubyweb", > "session_id" => "9650", > "prefix" => "web-session" > ) > > print "Content-Type: text/html\n\n" > print "" > #puts sess.inspect > print "HTML content here" > print "" > > And run this script on the command line. > > I get no html output beyond the Content-type line. Needless to say the > cgi script too. > > When I comment out the session creation line the script runs fine. > What's wrong with this picture? > > -Cere