[转载]ASP程序中同一个用户不允许同时登陆两次
文章作者:[url]http://blog.csdn.net/iuhxq/[/url]登陆页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
%> 江湖中,不能登陆二个号,你上了一个号,再上第二个号的话,一进聊天室,就会出现,系统提示,发现登陆二个号,补充系统踢出,这是什么原理????????????
比如,现在的太阳光江湖
有什么办法呀能绕过去呀
页:
[1]
