I am creating an admin tool with username/password authentication.
If the username/password combination are correct I want to set a cookie for the variables and then redirect to the main administratio menu.
My code is :
# Set Redirection page
$url="
$cookie1 = new CGI::Cookie(-name=>'username', -value=>$FORM{"username"});
$cookie2 = new CGI::Cookie(-name=>'password', -value=>$FORM{"password"});
print $query->redirect(-location=> $url, -cookie=>[$cookie1,$cookie2]);
I get an Internal Server error message.
I have set the permissions on the file to 755.
Can anyone see what I'm doing wrong please ??
Thanks
Nige
kiwi-kid
If the username/password combination are correct I want to set a cookie for the variables and then redirect to the main administratio menu.
My code is :
# Set Redirection page
$url="
$cookie1 = new CGI::Cookie(-name=>'username', -value=>$FORM{"username"});
$cookie2 = new CGI::Cookie(-name=>'password', -value=>$FORM{"password"});
print $query->redirect(-location=> $url, -cookie=>[$cookie1,$cookie2]);
I get an Internal Server error message.
I have set the permissions on the file to 755.
Can anyone see what I'm doing wrong please ??
Thanks
Nige
kiwi-kid