Forum: Ruby Cookies and SSI

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rene T. (Guest)
on 2006-05-03 21:06
(Received via mailing list)
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 topic is locked and can not be replied to.