⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ccookies.fun

📁 Active Server Pages 网页制作教程看之前请传到ASP空间。或者本地用iis。或安装pws内有说明
💻 FUN
字号:
<%
Function IsCookiesOpen()
   Dim ClientIP, URL, QueryString, IsNew

   Application.Lock
   If Session("kjSessionID") = Session.SessionID Then 
      IsCookiesOpen = True
      ClearApp
      Exit Function
   End If

   IsNew = False
   If Session("kjSessionID") = Empty Then
      CurrentIP = Request.ServerVariables("REMOTE_ADDR")
      If CurrentIP <> Application("kjIP") Then
          ClearApp
          IsNew = True
      End If
   End If

   If Not IsNew And Application("kjVisit") >= 1 Then
      IsCookiesOpen = False
      ClearApp
      Exit Function
   End If

   Application("kjVisit") = Application("kjVisit") + 1
   Application("kjIP") = Request.ServerVariables("REMOTE_ADDR")
   Session("kjSessionID") = Session.SessionID

   URL = "_page_=" & Request.ServerVariables("PATH_INFO")
   QueryString = Request.ServerVariables("QUERY_STRING")
   If Len(QueryString) > 0 Then URL = URL & "&" & QueryString
   If Not Response.IsClientConnected Then ClearApp
   Response.Redirect "/kjasp/func/CCookies.asp" & "?" & URL
End Function

Sub ClearApp()
   Application("kjVisit") = 0
   Application("kjIP") = ""
End Sub
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -