Add the following code to the validation page:
<%if trim (CSTR) (Request. QueryString ("Check")) = "true then " is used to determine if there is a choice to remember the password
Response.Cookies ("Usercookie") ("username" = trim (CSTR) (Request. Form ("username"))
Response.Cookies ("Usercookie") ("Passwords") = trim (request. Form ("passwords")
' Response.Cookies ("Usercookie"). path = "/login.asp"
Response.Cookies ("Usercookie"). Expires= dateadd ("Y", 1,now ())
end if%>
Login page code:
//This code is used to determine if there is a choice to remember the password And also sends a judgment field to the background
<script type= "Text/javascript" >
Function check ()
{ if (document.getElementById ("checkbox"). Checked
Alert (document.getElementById ("checkbox"). Checked)
document.getElementById ("ddd"). action= ' check.asp?id=user&check= ' +document.getelementbyid (" CheckBox "). Checked;}
</script>
' The following code is used to implement the ability to remember passwords
<%
StrusernaMe=request.cookies ("Usercookie") ("username")
Strpassword=request.cookies ("Usercookie") ("Passwords")
%>