I have authenticate.cgi script which receives username/password and validates them.
If its a valid login, i redirect the page to myIndex.cgi by sending some parameters like start-date/username etc where a report is shown to the user.
If its a invalid login, i redirect to the previous page so username/password can be re-entered.
when i redirect to myIndex.cgi, the url shows all the parameters in url bar. Is there a way to mask them so the parameters and their values are not shown in the url.
is there a way to do it? Please let me know. thanks.
authenticate.cgi
#Redirect to login if invalid username/password or redirect to report page
if ( ( $username eq '' ) || ( $password eq '' ) )
{
#print "not defined\n";
$referrer = $ENV{HTTP_REFERER};
print $query->redirect($referrer);
}
else
{
$retStatus=verifyLogin($username,$password);
my $myUser = $username;
#Redirect to the caller
if($retStatus eq "98")
{
$referrer = "http://projects.pjkeary.net/inspections_done_report/myIndex.cgi?start=2014-10-01&end=2014-10-31&exclude_dt=1&myUser=$myUser";
}
else
{
$referrer = $ENV{HTTP_REFERER};
}
print $query->redirect($referrer);
}
$referrer = $ENV{HTTP_REFERER};
print $query->redirect($referrer);