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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I protect my asp files?

Status
Not open for further replies.

webman8

Programmer
Jun 21, 2001
7
CA
Hi, I have a login page(page A) in which after successfully logging in, the user is directed to another page(page B). How can I protect this page(page B) from users directly typing in the URL, by passing the login page(page A)?
 
Just use a session object, eg :

if the login sussessfull then write : session("login")=("true")

on page b :

if session("login") = "true" then
blah blah
else
response.redirect "pagea.asp"
end if Regards

Big Dave

davidbyng@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top