防止重复提交的解决方案(1)

来源:互联网 发布:网络人气男头像 编辑:程序博客网 时间:2024/06/05 09:07
防止重复提交的解决方案(1)

'防止刷新A------------------------------------
'Response.COOKIES("md5Url").Expires=DateAdd("n",10,now()) '过期时间为十分钟
'Response.COOKIES("md5Url") = "No" '接收最新的Url
'If Request.Cookies("md5Url") = "Yes" Then
' execscript "alert('禁止重复提交');"
' response.End
'End If
'还有防止刷新B--------------------------------

{//此处放所需要执行的代码块........................................}

'防止刷新B------------------------------------
'Response.COOKIES("md5Url") = "Yes"
'-----------------------------------------------

原创粉丝点击