H
henry
if(a)
{
$cookie = $query->cookie(CGISESSID => $session->id );
print $query->header(-cookie=>$cookie);
$session->param("userlevel",$tmp[2]);
$session->param("~logged-in",1);
print $query->redirect('http://x.x.x.x/cgi-bin/check-success');
}
else
{
print $query->redirect('http://x.x.x.x/cgi-bin/fail');
}
I want to do that:if user check success,then send cookie to the user
and redirect to a cgi script.But this program just print the redirect
url to screen.
How can I implement this ?
thanks!
{
$cookie = $query->cookie(CGISESSID => $session->id );
print $query->header(-cookie=>$cookie);
$session->param("userlevel",$tmp[2]);
$session->param("~logged-in",1);
print $query->redirect('http://x.x.x.x/cgi-bin/check-success');
}
else
{
print $query->redirect('http://x.x.x.x/cgi-bin/fail');
}
I want to do that:if user check success,then send cookie to the user
and redirect to a cgi script.But this program just print the redirect
url to screen.
How can I implement this ?
thanks!