[返回首页]
 ◎ 您当前的位置:首页 >> 站长学堂 >> 源码大全 >> 正文
ASP程序中同一个用户不允许同时登陆两次
作者:未知 来源:网上收集 发布时间:2007-3-23 22:17:22

同一个用户不允许同时登陆两次实现办法一、
登陆页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
%>

[返回上一页] [打 印]
热点文章 推荐文章
·使用301重定向
·时间、空间性能极优的asp无组件上传类
·whois信息查询大全
·鼠标经过就跳出的代码
·四大机器人的代码
·实现百度站内搜索的代码
·让广告代码不再影响你的网页加载速度
·打开网页自动设为首页代码
·适合本blog的一个精美javascript日历
·挂QQ的上下线和隐身
·让网页跳转的几种方法
·滚动条特效代码收集