Which of the following statements are true about the advantages and disadvantages of the
application state server-based technique? Each correct answer represents a complete solution.
Choose all that apply.
A.
The global data stored is non-volatile. Therefore, data is lost if the server process is destroyed, i.e.,
if a server crashes, upgrades, or shuts down.
B.
It is accessible to all the pages in a Web application. Therefore, it keeps only a single copy of
information.
C.
The state variables that contain large blocks of information that increases Web server
performance due to increase in server loads.
D.
It requires server memory that affects memory performance and the scalability of an application.
E.
Application state variables should be used only with small and infrequently changed datasets.
Explanation:
Application state is a collection of user-defined variables that are shared by an ASP.NET application.
These are set and initialized when the Application_OnStart event fires on the loading of the first
instance of the application and are available till the last instance exits. Application state variables are
accessed using the Applications collection, which provides a wrapper for the application state
variables. Application state variables are identified by names. The following table describes the
advantages and disadvantages of using application state server-based technique: