📄 chkuser.asp
字号:
<%
if Request.Cookies("9cool_username")="" or Request.Cookies("9cool_password")="" then
response.write"<script>alert('提示:\n\n您还没有登录或登录超时!');top.location.href='login.asp'</script>"
response.end
end if
If conn.Execute("select * from [user] where username='"&Request.Cookies("9cool_username")&"' and password='"&Request.Cookies("9cool_password")&"' and state=1").eof Then
Response.Cookies("9cool_username")=""
Response.Cookies("9cool_password")=""
response.redirect "login.asp"
response.end
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -