Maintaining State with the Application Object

In contrast to the Session object, which provides a mechanism for storing data on a per-client basis, the Application object can be used to store and access any data that is specific to the Web application to which the Web Service belongs.

The Application object is very similar to the Session object with the exception that is does not manage Session IDs. Like the Session object, the Application object stores data in key-value pairs. Data stored in the Application object can be retrieved throughout the life of the Web application. This benefit is also a potential downfall of using the Application object—any data stored there will be kept in memory for the entire life of the application, therefore not ...

Get Creating and Consuming Web Services in Visual Basic® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.