同一个用户不允许同时登陆两次实现办法一、
登陆页login.asp:
<%
ifrequest.Form.count>0then
session("username")=request("username")
application(session("username"))=session.SessionID
response.Redirect("index.asp")
endif
%>
<formmethod=postaction="">
<inputtype="text"name="username"><inputtype="submit">
</form>
其他需要认证的页面index.asp:
<%
ifapplication(session("username"))=session.SessionIDthen
response.Write("已经登陆")
else
response.Write("没有登陆")
endif
%>同一个用户不允许同时登陆两次实现办法一、
登陆页login.asp:
<%
ifrequest.Form.count>0then
session("username")=request("username")
application(session("username"))=session.SessionID
response.Redirect("index.asp")
endif
%>
<formmethod=postaction="">
<inputtype="text"name="username"><inputtype="submit">
</form>
其他需要认证的页面index.asp:
<%
ifapplication(session("username"))=session.SessionIDthen
response.Write("已经登陆")
else
response.Write("没有登陆")
endif
%>
http://www.corange.cn/archives/2008/02/223.html
登陆页login.asp:
<%
ifrequest.Form.count>0then
session("username")=request("username")
application(session("username"))=session.SessionID
response.Redirect("index.asp")
endif
%>
<formmethod=postaction="">
<inputtype="text"name="username"><inputtype="submit">
</form>
其他需要认证的页面index.asp:
<%
ifapplication(session("username"))=session.SessionIDthen
response.Write("已经登陆")
else
response.Write("没有登陆")
endif
%>同一个用户不允许同时登陆两次实现办法一、
登陆页login.asp:
<%
ifrequest.Form.count>0then
session("username")=request("username")
application(session("username"))=session.SessionID
response.Redirect("index.asp")
endif
%>
<formmethod=postaction="">
<inputtype="text"name="username"><inputtype="submit">
</form>
其他需要认证的页面index.asp:
<%
ifapplication(session("username"))=session.SessionIDthen
response.Write("已经登陆")
else
response.Write("没有登陆")
endif
%>
http://www.corange.cn/archives/2008/02/223.html