| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 827 人关注过本帖
标题:求助版主??我想在登入框中设置,登入失败三次,就让登入框禁止登入30分钟
只看楼主 加入收藏
风心
Rank: 1
等 级:新手上路
帖 子:49
专家分:0
注 册:2004-8-19
收藏
 问题点数:0 回复次数:5 
求助版主??我想在登入框中设置,登入失败三次,就让登入框禁止登入30分钟

我想在登入框中设置,登入失败三次

就让登入框禁止登入30分钟

我把三次累加放session("n")中

搜索更多相关主题的帖子: 登入 版主 失败 
2004-11-12 15:36
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
收藏
得分:0 
不明白你的意思

59ita点com(我就爱TA)
2004-11-12 18:14
griefforyou
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:3336
专家分:0
注 册:2004-4-15
收藏
得分:0 
要想30分钟不能再登陆,需要将它的IP地址和登录时间存入Application变量中(或者数据库)

[此贴子已经被作者于2004-11-12 18:15:43编辑过]



天津网站建设 http://www./
2004-11-12 18:15
风心
Rank: 1
等 级:新手上路
帖 子:49
专家分:0
注 册:2004-8-19
收藏
得分:0 

能不能

写一下,代码,我不知道怎么写


2004-11-12 22:41
silvermoon
Rank: 1
等 级:新手上路
帖 子:188
专家分:0
注 册:2004-8-20
收藏
得分:0 

我也先知道,顶


我是一棵菠菜~~菜菜菜菜菜~~~
2004-11-13 17:20
风心
Rank: 1
等 级:新手上路
帖 子:49
专家分:0
注 册:2004-8-19
收藏
得分:0 

大家帮我看看,那里错了

<!--#include file="conn.asp"--> <!--#include file="../md5.asp"--> <%dim admin,password admin=replace(trim(request("admin")),"'","") password=md5(replace(trim(request("password")),"'","")) application("ip")=request.servervariables("REMOTE_ADDR") application("time")=cint(mid(date(),6,2)) session("n")=0 if admin="" or password="" then response.Write "<center><a href=login.asp><font color=red size=2>对不起,登陆失败,请检查您的登陆名和密码</font></a></center>" session("n")=session("n")+1 if session("n")=3 then if application("ip")=request.servervariables("REMOTE_ADDR") and application("time")+30>=cint(mid(date(),6,2)) then response.Redirect "index.asp" end if end if response.end end if set rs=server.CreateObject("adodb.recordset") rs.Open "select * from shop_admin where admin='"&admin&"' and password='"&password&"' " ,conn,1,1 if not(rs.bof and rs.eof) then if password=rs("password") then session("admin")=trim(rs("admin")) session("flag")=int(rs("flag")) session.Timeout=20 rs.Close set rs=nothing response.Redirect "index.asp" else

response.write "<script LANGUAGE='javascript'>alert('对不起,登陆失败!');history.go(-1);</script>" session("n")=session("n")+1 if session("n")=3 then if application("ip")=request.servervariables("REMOTE_ADDR") and application("time")+30>=cint(mid(date(),6,2)) then response.Redirect "index.asp" end if end if end if else response.write "<script LANGUAGE='javascript'>alert('对不起,登陆失败!');history.go(-1);</script>" session("n")=session("n")+1 if session("n")=3 then if application("ip")=request.servervariables("REMOTE_ADDR") and application("time")+30>=cint(mid(date(),6,2)) then response.Redirect "index.asp" end if end if end if

%>


2004-11-15 21:36
快速回复:求助版主??我想在登入框中设置,登入失败三次,就让登入框禁止登入3 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022911 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved