The document discusses session tracking in web applications. A session allows servers to track interactions with clients over time. Traditionally, sessions were tracked using hidden form fields, URL rewriting, or persistent cookies. The Java servlet API provides an easier session tracking mechanism using HttpSession objects. The API handles associating session data on the server with clients using cookies or URL parameters. Servlets access session data by calling getSession on the HttpRequest to retrieve an HttpSession object, then calling setAttribute and getAttribute to store and retrieve objects in the session. This allows servlets to maintain shopping carts and other stateful data across multiple requests.