Edit Edit

Java Servlet FAQ

What is a session?

HTTP is a stateless protocol. The client makes a request, the servlet processes the request, the servlet returns the response to the client, and the connection is closed. Sometimes it is desirable to maintain the state, or a client session, across multiple requests from the same client. For example, if you have an e-commerce Web site, you would want the site to keep track of a shopping cart for each client connected to your site. Multiple requests from the same client for adding or removing items from the shopping cart would have to be applied to the same shopping cart session.

Last updated 12/19/1999 03:04:46 PM