Introduction of ASP to prevent frequent page refresh
Source: Internet
Author: User
Refresh | Web <%
Dim refreshintervaltime
Refreshintervaltime = 3 ' Prevents refresh time seconds, 0 means not preventing
If Not IsEmpty (sessions ("visit")) and IsNumeric (session ("visit")) and int (refreshintervaltime) > 0 Then
if (Timer ()-int (Session ("visit")) *1000 < Refreshintervaltime * 1000 Then
Response.Write ("<meta http-equiv=" "Refresh" "Content=" "& Refreshintervaltime &" "/>")
Response.Write ("Refresh too fast, please wait")
Session ("visit") = Timer ()
Response.End
End If
End If
Session ("visit") = Timer ()
%><! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
<title>asp How to prevent frequent page refreshes-www.webjx.com</title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<link rel= "stylesheet" type= "Text/css" href= "Style.css" >
<style type= "Text/css" >
</style>
<body style= "Background-color: #666666; font-size:36pt;font-family: blackbody; color: #FFFFFF;" >
How does ASP prevent Web pages from frequently refreshing-www.webjx.com
</body>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service