asp判断用户是否登陆

作者:袖梨 2022-07-02

dim username,password
username=session("user")
password=session("pwd")
if reqeust("id")<>username then
response.write ""
response.end
end if
set rs=conn.execute("select * from [user] where name='"&reqeust("id")&"' and pwd='"&password&"'")
if rs.eof then
response.redirect "login.asp"
else
...
end if
rs.close

asp判断用户是否登陆

相关文章

精彩推荐