Private Response As ASPTypeLibrary.Response
Private Request As ASPTypeLibrary.Request
Private Session As ASPTypeLibrary.Session
Private Application As ASPTypeLibrary.Application
Private Server As ASPTypeLibrary.Server
'初始化
Public Sub onStartPage(my As ScriptingContext)
Set Request = my.Request
Set Response = my.Response
Set Session = my.Session
Set Server = my.Server
Set Application = my.Application
End Sub
Public Function getSession(ByVal ID As String)
if Trim(ID)<>"" then
getSession=Session(ID)
else
getSession=""
end if
End Function
'消毁
Public Sub onEndPage()
Set Request = Nothing
Set Response = Nothing
Set Session = Nothing
Set Server = Nothing
Set Application = Nothing
End Sub