% validpwd = True If Request.Form("submit") <> "" Then ' Setup variables userid = Request.Form("userid") passwd = Request.Form("passwd") If ((UCase("ccadwelladmin") = UCase(userid)) And (UCase("#passcadwell") = UCase(passwd))) Then Session("project1_status") = "login" ' Write cookies If Request.Form("rememberme") <> "" Then Response.Cookies("project1")("userid") = userid Response.Cookies("project1" ).Expires = Date + 365 ' Change the expiry date of the cookies here End If Response.redirect "default.asp" Else validpwd = False End If End If %>
Incorrect user ID or password
<% End If %>