∟"application" Object - Sharing Data within an Application
This section provides a tutorial example on how to use the 'application' object provided by the ASP programming interface to share data within an application.
application: An object provided by the server to hold information and methods
common to all sessions related to one virtual directory.
Contents: A collection object acting an cache for ASP pages from different
sessions to share information. Since "Contents" is the default collection, we write
'application.Contents("myVar")' as 'application("myVar")'.
Lock(): A method to lock the application object for synchronization.
UnLock(): A method to unlock the application object for synchronization.
OnStart(): An event handler to be called when the first HTTP request comes
to this virtual directory.
OnEnd(): An event handler to be called the server wants to terminate the
service on this virtual directory.
Buffer: A Boolean property indicating whether to buffer the page until the
contents are completed.
Charset: A property representing the character set name in HTTP response header.
ContentType: A property representing the content type name in the HTTP response header.
Expires: A property representing the period of time before the page cached
on a proxy server expires.
IsClientConnected: A Boolean property indicating whether the browser has
disconnected from the server.
Status: A property representing the status in the HTTP response header.