欢迎光临
我们一直在努力

asp程序中同一个用户不允许同时登陆两次_asp技巧

建站超值云服务器,限时71元/月

登陆页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
%>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » asp程序中同一个用户不允许同时登陆两次_asp技巧
分享到: 更多 (0)