最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp cookies实例教程
时间:2022-07-02 22:34:13 编辑:袖梨 来源:一聚教程网
想利用COOKIE记录当前用户刚才是否发了贴,
MyVar=Request.Cookies("starttime")
if myvar="" then
Response.Cookies("starttime")=time()
Response.COOKIES("starttime").Expires=DateAdd("n",1,now())
else
response.Write("您提交的信息频率过快请过15分钟后提交下一条")
response.end
end if
为什么这样不起作用,哪句错了
MyVar=Request.Cookies("starttime")
if myvar="" then'如果 为空则证明该用户没有来到过该页面
Response.Cookies("starttime")=time()'这时session("starttime")不为空
Response.COOKIES("starttime").Expires=DateAdd("n",1,now())'设置COOKIE保留时间为一分钟
else
response.Write("您一分钟前来过这里,请过一会再来")
response.end
end if
相关文章
- 2025年8月XRP将迎来什么? 08-02
- 《阴阳师》“超鬼王”阿修罗阵容推荐分享 08-02
- 《奇迹暖暖》饴蜜迎春套装怎么获得方法有哪些 08-02
- 怎么驱动矿机-矿机怎么打驱动 08-02
- 《空之要塞:启航》阵容角色搭配最强推荐 08-02
- 《重返未来1999》洞悉机制有什么 08-02