Professional Java Servlets 2.3

 < Free Open Study > 


The fact that HTTP is a "stateless protocol" has important consequences when we communicate with web applications via HTTP. In the introduction to this chapter, we discussed one scenario where we need to maintain state, the shopping cart application. Consider another scenario:

In both scenarios we mentioned above there are two important activities:

The ability to associate a request with the client that made the request is known as maintaining a session. However, the obvious next question to ask is: what mechanisms can we use to maintain sessions?


 < Free Open Study > 

Категории