Hi everyone.
I'm kinda new to ASP I need your help in my login form.
I already coded the login/pword authentication. I have a question though. How do i prevent users from bypassing the login form.
What is the code to make sure a page underwent a login authentication first?
Here is a snippet of my login/password code.
Now in this example i want to protect the success.html for any bypass. Thanks in advance.Code:strSQL="SELECT * FROM Table WHERE Login = '" & request.form("userfield") & "' and Password = '" & request.form("pwordfield") & "'" set rs = Global_DBConnection.execute(strSQL) dim blnAuth If Not (rs.EOF and rs.BOF) Then blnAuth = True End if if blnAuth = True then response.Redirect("success.html") response.End() elseif blnAuth = False then response.Redirect("Fail.html") response.End() end if set rs = nothing
-zynder




Reply With Quote