cgi problem

  • Thread starter Javier Valencia
  • Start date
J

Javier Valencia

Hi, i'm trying to work with cgi objects.
Most of them are working, but one is not working. The problem is that
the browser stalls in the loading status and nothing happens. I see in
the process tree that ruby is executing the script but is stalled.
If I remove the cgi creation in the script, then it works.

The part of the script that breaks all is:

cgi = CGI.new("html4")
session = CGI::Session.new(cgi,
'session_expires' => Time.now + 60,
'prefix' => 'rubyweb')

and the script is called from another one that generates:

cgi.form("post", "checkpass.rb") do
cgi.text_field("user") +
cgi.text_field("password") +
cgi.submit
end

When i hit submit, all gets stalled.
What can i do?
Thanks
 
J

Javier Valencia

Javier said:
Hi, i'm trying to work with cgi objects.
Most of them are working, but one is not working. The problem is that
the browser stalls in the loading status and nothing happens. I see in
the process tree that ruby is executing the script but is stalled.
If I remove the cgi creation in the script, then it works.

The part of the script that breaks all is:

cgi = CGI.new("html4")
session = CGI::Session.new(cgi,
'session_expires' => Time.now + 60,
'prefix' => 'rubyweb')

and the script is called from another one that generates:

cgi.form("post", "checkpass.rb") do
cgi.text_field("user") +
cgi.text_field("password") +
cgi.submit
end

When i hit submit, all gets stalled.
What can i do?
Thanks
I can't get it working, if i use the script directly, it works, but if
it's called from a form, it doesn't works.
Is CGI::Session broken?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CGI::Session weird behavior 2
CGI::Session just don't work 3
Sending form data to a text file 4
CGI help 18
CGI::Session / mod_ruby problem. 2
Session in Eruby 0
cgi sessions not working :S 3
CGI::Session Problem 0

Members online

Forum statistics

Threads
474,166
Messages
2,570,907
Members
47,448
Latest member
DeanaQ4445

Latest Threads

Top