ASP Lecture Series (18) Managing Applications
Author:Eve Cole
Update Time:2009-05-30 19:58:39
The Windows NT Option Pack provides ASP application management services on the Web server. For example, Internet Services Manager provides application developers with an easy-to-use management tool for setting application properties. In addition, Active Server Pages provides scripting capabilities that allow user applications to store global data. This topic briefly introduces some of the application management features and provides links to detailed information.
Starting and Ending an Application The first time the Web server receives a request for an ASP page in an application, it starts the application. An application ends when the Web server shuts down or the user stops the application using the Uninstall button on the Internet Services Manager. Users can only use the Uninstall button for applications that run in a different (isolated) memory space than the Web server process.
Isolate an application
ASP applications typically run in the same memory space or in the same process as the Web server. Although this improves the performance of the ASP application, it puts the Web server process at risk if the application fails. You can isolate an application by having it run in a different memory space than the Web server. If the ASP application fails, other applications and the Web server itself are protected.
Using Application State When you write your application, you should make information about your application available to all users of your application. For example, create variables that enable system administrators to customize their site's applications by setting a different welcome screen or changing the title font for all ASP pages. These changes will be visible to all users who visit the site.
There are several ways to make data available to all users of an application from all pages of the application. The most common method is to store a variable or object instance in an ASP Application object and give it application scope. Application scope is useful for global data, such as global data counters or global application configuration information, but also information stored in the registry or metabase. To learn how to give a variable scope, . To learn how to give an object scope,
You can also write scripts that run when the application starts or shuts down.