关于用COOKIES记录限制进入次数
我现在用的是cookies两小时过时一次
请问各位大哥,怎么用标准时候来限制
当有一个大厅这个时段时在用,就不能再用了
提示更换其它大厅.怎么用循环语句写
gaobt=Trim(Request.Form("gaobt"))
gaobtime=Trim(Request.Form("gaobtime"))
set mess=server.CreateObject("Adodb.RecordSet")
sql="select * from [right] where pzh='"&pzh&"'"
mess.open sql,conn,1,3
if mess.bof or mess.eof then
mess.addnew
mess("gaobt")=gaobt
mess("gaobtime")=gaobtime
mess.update
response.cookies("gaobt")=mess("gaobt")
response.cookies("gaobtime")=mess("gaobtime")
response.cookies("gaobt").expires=Hour+2
response.cookies("gaobtime").expires=Hour+2
end if
if mess("gaobt")=gaobt then
response.write"<script>alert('此大厅已在使用,请更换其它大厅');history.back()</script>"
else
response.write"<script>alert('添加成功');</script>"
response.write"<script>window.location.href='right.asp';</script>"
end if