Servlets and Web Sessions

The Hypertext Transfer Protocol (HTTP) is by design a stateless protocol. However, an effective Web application requires that a series of requests from a particular client be grouped together. The notion of grouping multiple requests from a single client is typically referred to as a Web session.

Conventional Methods for Session Tracking Are Difficult

In the early days of the Web, few mechanisms were available for session tracking. The earliest of these was hidden form fields in pages. Later, this was supplanted by the use of cookies and URL rewriting. Cookies are defined text objects that can be placed in the user's offline store, via their browser. Subsequent requests to a site retrieve the cookie, which serves the ...

Get J2EE™ Applications and BEA™ WebLogic Server™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.