Can any one tell me if it's possible to pass session information from <form action...>
I have pages which check session parameter '~logged-in' at the begining of all page. 
And I found that 'submit' can not pass session information (from 'action')properly 
which means I am always redirected to 'index.html' page. Below is my test.pl which 
will load page itself if 'update' is submitted, but I will be redirected to home page 
each time. 
#################test.pl#########################################
use CGI qw(:all);
use CGI::Session;

$cgi=new CGI;

$session = new CGI::Session ("driver:File", $cgi, {Directory=>'c:/tmp/'});

$sid = $session->id();

if (($session->param("~logged-in")!= 1) )
{
   print "Location: http://localhost:8080/test/index.html\n\n";; 
   exit;
}

print $cgi->header;
print "<form action=\"./test.pl?CGISESSID=$sid\" method=\"post\">";
print "<input type=\"text\" name=\"quantity\" value=\"10\">";
print "<input type=\"submit\" value=\"update\">";
print "</form>";


                
---------------------------------
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢

Reply via email to