The Application Object The Session Object The Cache Object The Request Object

294 The s parameter is the string to decode. The decoded string is written to the TextWriter object passed in the output parameter.

6.6.2 The Application Object

The Application object is an instance of the HttpApplicationState class defined in the System.Web namespace. This object holds application state to be used by all web requests in an application. See Sect ion 6.8 later in this chapter for more information.

6.6.3 The Session Object

The Session object is an instance of the HttpSessionState class defined in the System.Web.SessionState namespace. This object holds application state that is specific to the current web requests session. See Maintaining State later in this chapter for more information.

6.6.4 The Cache Object

The Cache object is an instance of the Cache class defined in the System.Web.Caching namespace. This object caches dynamically created objects on the server, thereby improving average performance for the web sites users. Caching is not discussed further in this book.

6.6.5 The Request Object

The Request object is an instance of the HttpRequest class defined in the System.Web namespace. This object provides information and services related to the current web request. These are the commonly used properties of the HttpRequest class: ApplicationPath The virtual path of the root folder of the application. This is a read-only property. The type is String. Browser Information about the capabilities of the client browser. This is a read-only property. The type is HttpBrowserCapabilities defined in the System.Web namespace. The properties of the HttpBrowserCapabilities type are listed later in this chapter under Sect ion 6.7 . Cookies The collection of client-side cookies sent by the browser. This is a read-only property. The type is HttpCookieCollection defined in the System.Web namespace. See the discussion of cookies later in this chapter under Sect ion 6.8 . FilePath The virtual path of the current request. The type is String. IsAuthenticated An indication of whether the user has been authenticated. The type is Boolean. IsSecureConnection 295 An indication of whether the current request is over a secure HTTPS connection.

6.6.6 The Response Object