Chapter 9. Session Tracking
Topics in This Chapter
Implementing session tracking from scratch
Using basic session tracking
Understanding the session-tracking API
Differentiating between server and browser sessions
Storing immutable objects vs. storing mutable objects
Tracking user access counts
Accumulating user purchases
Implementing a shopping cart
Building an online store
This chapter introduces the servlet session-tracking API, which keeps track of user-specific data as visitors move around your site.
The Need for Session Tracking
HTTP is a “stateless” protocol: each time a client retrieves a Web page, the client opens a separate connection to the Web server and the server does not automatically maintain contextual information about the client. ...