global.asa
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:1k
源码类别:

OA系统

开发平台:

Java

  1. <SCRIPT Language="VBScript" RunAt="Server">
  2. Sub Application_OnStart()
  3.    Application("Counter") = 0
  4.    Application("MaxCounter") = 0
  5.    Application("MaxTime") = now()
  6.    Application("StartTime") = now()
  7. End Sub
  8. Sub Session_OnStart()
  9.    Application.Lock
  10.    Application("Counter") = Application("Counter") + 1
  11.    if Application("Counter")>Application("MaxCounter") then
  12.     Application("MaxCounter")=Application("Counter")
  13.    Application("MaxTime") = now()
  14.    end if
  15.    Application.UnLock
  16. End Sub
  17. Sub Session_OnEnd()
  18.    Application.Lock
  19.    Application("Counter") = Application("Counter") - 1
  20.    Application.UnLock
  21. End Sub
  22. </SCRIPT>