eruby+session+cgi

WibbleCP <[email protected]> Wed, 17 Oct 2007 00:48:57 +0200
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi guys I have some problem trying to pass the session variable contents 
from one page to onether one. I am trying to use eruby.noheader function 
but with no results

===test1.rhtml
<%
require'cgi'
require 'cgi/session'

ERuby.noheader = true
cgi = CGI.new("html4")
session = CGI::Session.new(cgi)

session["name"] = "john"
# redirect to another page
print cgi.header({"status" => "REDIRECT", "location" => "gettest1.rhtml"})

===getetst1.rhtml
 # In this page I'd like to retrive the content of the session variable

require'cgi'
require 'cgi/session'

ERuby.noheader = true
cgi = CGI.new("html4")
session = CGI::Session.new(cgi)
puts cgi.header()
puts "no" if session["name"].nil?


, but I am able to retrieve the only "no" response. What's wrong?
I hope that this is the right place where I can get the right reply.

Please help me in some way. I am tring to solve this question!

thanks a lot to all.