Application防止灌水

发布时间:2007-04-03 22:32:00 阅读:1191次

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<form method="post" action="session.asp">
  <input type="text" />
  <input type="submit" value="提交" />
</form>
</body>
</html>

session.asp

<%If DateDiff("s",application("lasttime"),now())<=3 then %>

<script>
alert("不能发水贴!请于3秒后再发!")
history.back();
</script>

<%else%>

<%
application("user")=application("user") & request("username") & "<br/>"
response.write application("user")
%>

<%
application("lastuser")=session.sessionid
application("lasttime")=now()
%>
<%end if%>

如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术

支付宝 微信

有疑问联系站长,请联系QQ:QQ咨询

转载请注明:Application防止灌水 出自老鄢博客 | 欢迎分享