Chapter 25. Working with Client-Side Cookies

Working with Client-Side Cookies

Chapter 5, “Session Management,” examined the use of cookies for session management. In this chapter, we look at cookies in more detail, especially in regards to manipulating cookies at the client side (for example, in a browser).

To recap, a cookie is a small piece of information that is stored by the web browser in a client’s machine or kept in the machine’s memory. This information is sent to the server each time the client requests a page from where the information originated. Cookies are normally used to retain state or information in the stateless HTTP protocol.

Some users, however, prefer not to ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions 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.