求助!!在线等:关于cookie的问题。
<%
check1=request.Cookies("VisitorName")("Namecf")
check2=request.Cookies("VisitorName")("passcf")
if check1 <> "" then
sql = "SELECT * FROM pwdcf where usercf='"&check1&"'"
set rs=db.execute(sql)
if not (rs.BOF or rs.eof) then
if rs("passcf") = check2 then
Session("user1") = true
Session("pwd1") = true
session("usercfname")=userc
response.redirect("cf.asp")
end if
end if
end if
%>
我希望可以通过cookie的保留下一次就可以直接到cf.asp了,
可总是不能实现
我可以肯定check1和check2有值,因为我用下用的看到了
<%=request.Cookies("VisitorName")("Namecf")%>
<%=request.Cookies("VisitorName")("passcf")%>
<%=sql%>
<%=check1%>
<%=check2%>
我感觉是if嵌套的问题,不知应该如何来作cookie判断的循环啊,
不知如何改啊~~~~~~~~~~~~~~~~