ApplicationProgramA domain is an address space forcibly defined by CLR to ensure that applications do not affect each other. It has the following features:
1. All web pages of an independent web application share the same memory resources, such as global application data, session data of each user, and cache data. This information cannot be directly accessed by other ASP. NET or ASP applications.
2. All web pages of an independent web application share the same core configuration settings. However, you can customize specific configuration settings in individual subdirectories of the same virtual directory. For example, you can set only one authorization mechanism for a web application, regardless of its subdirectories. However, you can set different authorization rules for each subdirectory to allow different webpage groups to be accessed by different people.
3. all Web applications generate global application events at different stages (when the application domain is first created, when the application is released ), you can go to global in the virtual directory of your application. bind the event processor to the asax file to intercept these global application events.