ASP程序中同一个用户不允许同时登陆两次
<DIV class=NewsContent id=NewsContentLabel>登陆页login.asp:<BR><%<BR>if request.Form.count>0 then <BR>session("username")=request("username")<BR>application(session("username"))=session.SessionID<BR>response.Redirect("index.asp")<BR>end if<BR>%><BR><form method=post action=""><BR><input type="text" name="username"><input type="submit"><BR></form><BR><BR><BR>其他需要认证的页面index.asp:<BR><%<BR>if application(session("username"))=session.SessionID then<BR>response.Write("已经登陆")<BR>else<BR>response.Write("没有登陆")<BR>end if<BR>%> <BR></DIV>页:
[1]