Unit 15.1. Using Cookies to Maintain State
Maintaining State in a Web Application
It can be difficult to grasp that each request is unrelated when surfing the Web. What happens when a browser requests a Web page or resource from a site? In short:
Browser identifies the server that has the resource
Browser requests the resource from the server
Server returns the resource to the browser for rendering
Although each request is separate, Web browsers create the feeling of a user session by placing each request for a page into a larger context; thus a Web browsing session can unfold like a story, with you as the protagonist and the sequence of pages you travel through as the plot. Browsers keep track of each page request, and provide “Previous” and ...