当前位置:系统之家 > 技术开发教程 > 详细页面

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

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

更新时间:2022-05-13 文章作者:未知 信息来源:网络 阅读次数:

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

温馨提示:喜欢本站的话,请收藏一下本站!

本类教程下载

系统下载排行