From: "Bermejo, Rodrigo" Date: 2003-04-01T03:38:03+09:00 Subject: [Q] CGI::Session Have nice & productive week everyone. I am trying to create a CGI:Session , but I am having troubles understanding the CGI behavior. I am trying to use the CGI class just to handle session information, and use a simple 'print' to generate my html document, After creating a CGI object it takes control of the STDOUT ? #!/usr/bin/env ruby #-----------------> #Abstraction of my problem #This code does not work def head(title) require 'cgi' require 'cgi/session' print "Content-type: text/html\r\n\r\n" #Session handling cgi=CGI::new("html3") session=CGI::Session(cgi) print "You are logged in as: #{session[\"login\"]}" if session["login"] html_out= "" + "#{title}" + "" print html_out end #-----------------< thks -r.