Chapter 7. Tracking Sessions

Topics in this Chapter:

  • Tracking Data Between Requests

  • Hidden Frames and Hidden Form Fields

  • Cookies and URL Rewriting

  • The HttpSession API

  • Sessions & Identity

JSP is typically used to create HTML or XML pages that are delivered using HTTP. Previous chapters have gone through heavy discussions on HTTP requests and responses. One of the limitations of HTTP is that it is a stateless and connectionless protocol. This means that the protocol has no recollection of any transaction that occurred in the past. Each new request from the client creates a whole new transaction that has no relation to any past, concurrent, or future transaction. The client makes a request, the server completes the request to the best of its abilities, ...

Get Core JSP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.