If a large number of applications are used in the website, it will occupy a large amount of server resources. Therefore, when we exit the background, we can clear the data and the website will run faster.
Application Object implementation in a given application ProgramAll users share the information and save the data permanently during the running of the server. In addition, the application object also provides methods to control access to application layer data and events that can be used to trigger the process when the application starts or stops.
Although the application object does not have built-in attributes, we can use the following syntax to set user-defined attributes, also known as collections.
Application ("attribute/Set Name") = Value
BelowCodeExplains how to create and clear an application
Create an application assignment: <% application ("AA") = "lhp" %> <br/>
Print Application Value: <% = Application ("AA") %> <br/>
<HR/>
Use ASP to clear the application object code:Copy codeThe Code is as follows: <%
'Application. Contents. removeall
'Application. Contents. Remove ("variable name ")
Application. Contents. Remove ("AA ")
%>
<Br/>
Print Application Value: <% = Application ("AA") %>