I want to make sure that user doesn't open a new window and continue while the user is logged in to the database. So stillflame told me I should use the $ENV{'HTTP_REFERER'};. I tried the following but getting an internal server error:
$window = $ENV{'HTTP_REFERER'};
if ($window eq ""
{
print "You account is no longer logged in.";
exit(0);
}else{
&login;
}
(by the way, sorry i have been asking too many questions these days, I just wanna avoid those hackers.)
-Aaron
$window = $ENV{'HTTP_REFERER'};
if ($window eq ""

print "You account is no longer logged in.";
exit(0);
}else{
&login;
}
(by the way, sorry i have been asking too many questions these days, I just wanna avoid those hackers.)
-Aaron