最新下载
热门教程
- 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
相关文章
- 腾讯视频2022年发展历程回顾与平台现状分析 05-15
- 公主生存技能大全攻略(掌握关键技巧,成为真正的公主) 05-15
- Claude - 维基百科,自由的百科全书 05-15
- Claude (语言模型) - 维基百科,自由的百科全书 05-15
- 我们希望在 万智牌 旅法师对决 中回归的机制有什么 05-15
- PS国服港服日服官网地址在哪-PlayStation官网地址一键直达 05-15