%@ LANGUAGE = JScript %>
<%
// Ensure that this page is not cached
Response.Expires = 0;
%>
Using Application Variables
Using Application Variables
<%
// If this is the first time any user has visited
// the page, initialize Application Value
if (Application("AppPageCountJScript") == null)
{
Application("AppPageCountJScript") = 0;
}
// Increment the Application AppPageCount by one.
// Note that because this AppPageCount value is being
// shared, locking must be used to prevent
// two sessions from simultaneously attempting
// to update the value.
Application.Lock();
Application("AppPageCountJScript") = Application("AppPageCountJScript") + 1;
Application.UnLock();
%>
Users have visited this page
<%=Application("AppPageCountJScript")%> times!
Click here to visit it again