The line that seems to be giving the problem is
If rsCheckUser("Status")= 1 Then
The thing is, it used to work before, the next day, it didn't work. The normal user's log in works fine, but I dunno bout the admin login. Argh. Help me please!
If (Request.Form("password")) = rsCheckUser("OldPassword") Then
Session("logged") = True
Session("username") = Request.Form("username")
rsCheckUser.Close
rsCheckUser.Open strStatus, strCon
If rsCheckUser("Status")= 1 Then
Response.Redirect"adminhome.asp"
Session("admin") = True
rsCheckUser.Close
End if
Response.Redirect"home.asp?"
Else
Response.Redirect("login.asp?error=" & 1)
End If
The Error Message:
Error Type:
(0x80020009)
Exception occurred.
/loginvalidate.asp, line 45