Cookies and SSI

Dear Ruby Experts,

I am somewhat confused about that CGI stuff. I have successfully written
a Ruby script that sets a cookie. The script is called directly as CGI
script, because I noticed that it seems to be impossible to call the CGI
script using Apache’s Server Sider Includes (SSI). Well. As workaround I
send some form data to the Ruby CGI which creates a cookie from the
data. The cookie exists and can easily be viewed with the Mozilla Cookie

But I have some trouble with reading the cookie data. A second Ruby CGI
script reads the cookie. It works well if called directly. It doesn’t
work if called with SSI, neither using “#include virtual=…” nor “#exec

Any hints?


What I wanted to do is:

  • user visits a webpage
  • user fills out a form
  • form data is sent to a Ruby script which creates some output
  • some output is embedded in the mentioned webpage during a reload

And I tried to pass the some output to the webpage as cookie.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs