Do the website, if use a large number of application will occupy a lot of server resources, so we quit the background can, empty the data, the site will run faster
The Application object implements the sharing of information among all users of a given application and holds the data persisted during the server's run. Also, the Application object has control over how the application-tier data is accessed and the events that can be used to trigger the process when the application starts and stops.
Although the Application object has no built-in properties, we can use the following syntax to set a user-defined property, also known as a collection.
Application ("Attribute/collection name") = value
The following code shows how to create and empty application
Establish application Assignment: <%application ("AA") = "LHP"%><br/>
Print Application value: <%=application ("AA")%> <br/>
Implement the code for emptying the Application object with ASP:
Copy Code code as follows:
<%
' Application.contents.removeall
' Application. Contents.Remove ("Variable name")
Application. Contents.Remove ("AA")
%>
<br/>
Print Application value: <%=application ("AA")%>