Hi, I am having some problems with login verification on this asp system I have here.To begin here is the code for the login screen:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>Login</title></head><BODY bgcolor=#133F54 onLoad="document.login.user.focus()"><body><%Session("userN") = ""Session("passW") = ""%><font color = #CCFFFF>You Must Log In to Access/Update certain Features</font><form name = "login" action="checkLog.asp" method="post"><table><tr><td><font color=#3399AA>User Name: <input type="text" name = "user" value = "" ONFOCUS="if (this.value==this.defaultValue) this.select()"></td><td><font color=#3399AA>Password: <input type="password" name = "password" value = "" ONFOCUS="if (this.value==this.defaultValue) this.select()"></font></td></tr><tr><td><br><input type = "submit" value = "Submit" name = "submit"><input type="button" name = "main" value = "Home" onClick = "window.location = 'main_page.asp';"></td></tr></table><br><br></form></body></html>
Next is the code for the page CheckLog:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <title>Untitled</title></head><input type="text" value="<%=request.form("user")%>"><input type="text" value="<%=request.form("password")%>"><body bg color=133f54><!--#include file= "loggedIn.ssi"--><%'response.redirect "Index2.asp"%></body></html>
(the input boxes are just to test that the strings were carrying over)And finally the ssi I use to check the login:<%'This is used at the top of every search page that doesnt require Admin Accessuser = Session("userN")password = Session("passW")if user = "" or password = "" then user = request.form("user") password = request.form("password")end ifif user = "" or password = "" then response.redirect "login.asp"end if%><!--#include file="dbConnectAll.ssi" --><%strSQL = "select * from logins"rs.Open strSQL, adoConverified = 0do until rs.eof if user = rs.fields("username") and password = rs.fields("password") then Session("userN") = user Session("passW") = password verified = 1 rs.movenext else rs.movenext end ifloopif verified = 0 then Session ("userN") = "" response.redirect "login.asp"end if%>
The problem seems to be that it isn't setting verified to 1(near end of code verify check) even though I am entering the right password and username and have check this many times. Every time I try to submit the verift loop doesn't work so the session ID is set to null and goes back to the login screen.Thoughts?