Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about $ENV{'HTTP_REFERER'};

Status
Not open for further replies.

perlone

Programmer
Joined
May 20, 2001
Messages
438
Location
US
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
 
never mind. i found it:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top