盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

ASP程序中同一个用户不允许一起登陆2次

时间:2024/11/28作者:未知来源:盾怪网教程人气:

[摘要]登陆页login.asp:<%if request.Form.count>0 then session("username")=request("usern...

登陆页login.asp:

<%
if request.Form.count>0 then
session("username")=request("username")
application(session("username"))=session.SessionID
response.Redirect("index.asp")
end if
%>
<form method=post action="">
<input type="text" name="username"><input type="submit">
</form>

其他需要认证的页面index.asp:

<%
if application(session("username"))=session.SessionID then
response.Write("已经登陆")
else
response.Write("没有登陆")
end if
%>



关键词:ASP程序中同一个用户不允许一起登陆2次




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版