龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

asp判断用户是否登陆

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:

dim username,password
username=session("user")
password=session("pwd")
if reqeust("id")<>username then
response.write "<script>alert('非法操作');window.location.href='index.asp';</script>"
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判断用户是否登陆


精彩图集

赞助商链接