[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

CGI::Session with FastCGI

Wayne Pierce

5/11/2005 5:55:00 PM

I have been mucking around with CGI::Session, but can't get it working
with FastCGI. Here is what I have for a test script:

#!/usr/bin/ruby -w

require "fcgi"
require "cgi"
require "cgi/session"

FCGI.each_cgi{ |resp|
# This variable will contain the page to be displayed
content = 'Test'
cgi = CGI.new("html3")
sess = CGI::Session.new(cgi, "session_key" => "chblmd", "prefix" => "chblmd.")

resp.out{content}
}

Can anyone see what I am doing wrong? Thanks for any advice,

Wayne