<% If Request("DontFrame")<>1 Then Response.Redirect "/iissamples/sdk/asp/docs/SampFram.asp?ovfile=/iishelp/iis/htm/sdk/samp35mb.asp&srcfile=Applications/Application" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
You can use the built-in <b>Application</b> object to store developer-defined global application information that is persistent for the life of the application. </p>
<p>
This example demonstrates this storage ability by implementing a simple counter. The total number of times that client browsers visit the sample script is stored in the application variable <i>AppPageCount</i>, and incremented each time the script is accessed.</p>
<p>
<b>Note</b> Since the <b>Application</b> object for a given application is available to many client browsers simultaneously, the object must be locked before a property or value is changed, and unlocked after the change. Locking is not necessary if the value or property is simply being queried.</p>