zoukankan
html css js c++ java
ASP禁止刷新当前页
方法1:
<
%
Dim
SplitReflashPage
Dim
DoReflashPage
dim
shuaxin_time
DoReflashPage
=
true
shuaxin_time
=
10
ReflashTime
=
Now
()
if
(
not
isnull
(session(
"
ReflashTime
"
)))
and
cint
(shuaxin_time)
>
0
and
DoReflashPage
then
if
DateDiff
(
"
s
"
,session(
"
ReflashTime
"
),
Now
())
<
cint
(shuaxin_time)
then
response.write
"
<META http-equiv=Content-Type content=text/html; charset=gb2312><meta HTTP-EQUIV=REFRESH CONTENT=3>本页面起用了防刷新机制,请不要在<b><font color=ff0000>
"
&
shuaxin_time
&
"
</font></b>秒内连续刷新本页面<BR>正在打开页面,请稍候……
"
response.
end
else
session(
"
ReflashTime
"
)
=
Now
()
end
if
elseif
isnull
(session(
"
ReflashTime
"
))
and
cint
(shuaxin_time)
>
0
and
DoReflashPage
then
Session(
"
ReflashTime
"
)
=
Now
()
end
if
randomize
timer
regjm
=
int
(
rnd
*
8998
)
+
1000
%
>
方法2:
<
%
Dim
URL
If
DateDiff
(
"
s
"
,Request.Cookies(
"
oesun
"
)(
"
vitistime
"
),
Now
())
<
2
Then
URL
=
Request.ServerVariables(
"
Http_REFERER
"
)
Response.Write(
"
<meta http-equiv=""refresh"" content=""2;URL=
"
&
URL
&
"
"">
"
)
Response.Write(
"
防刷新,两秒后自动跳转
"
)
Response.
End
End
IF
Response.Cookies(
"
oesun
"
)(
"
vitistime
"
)
=
Now
()
%
>
青苹果Web应用商店
https://webapp.taobao.com/
PHP/ASP.NET/ASP/UCHOME/DISCUZ! X系列网站开发,详细需求联系
QQ:8511978
查看全文
相关阅读:
关于数据仓库的数据模型的思考
西影寺的由来
机器能像人一样思考吗?人工智能(一)机器学习和神经网络
手机摄影超越单反?触手可及的AI让每个人成为专业摄影师!
Flower
Backpropagation算法 (转
Spring Data JPA:解析CriteriaQuery
Spring Data JPA:解析CriteriaBuilder
Spring Data JPA:解析JpaSpecificationExecutor & Specification
Spring Data JPA:解析SimpleJpaRepository
原文地址:https://www.cnblogs.com/Dicky/p/131082.html
最新文章
【网络安全设备系列】9、WAF(Web应用防火墙)
【网络安全设备系列】8、防病毒网关(防毒墙)
【网络安全设备系列】7、流量监控设备
windows系统中git下拉代码同名大小写文件系统冲突问题解决
mysql创建数据库、用户、授权
常用数据库系统汇总
A Brief History of Humankind 词汇
C#知识点集锦(六)捕捉子线程中的异常
java练习生
java练习生
热门文章
MicroPython刷写固件(一)
新债配号
iOS 中OpenGL ES 优化 笔记 1
C语言 > 分解质因数
LinuxMint 19.3升级至LinuxMint 20
Loading local data is disabled; this must be enabled on both the client and server sides
vue中使用swiper做无缝滚动(走马灯)效果
DataContractJsonSerializer 类 操作json类型数据
数据中台已成下一风口,它会颠覆数据工程师的工作吗?
用户增长是什么?和数据分析有啥关系?
Copyright © 2011-2022 走看看