Murach's Java Servlets and JSP

This chapter shows how to use the servlet API to keep track of sessions, and it shows how to use the servlet API to work with cookies.

Chapter 7 How to work with sessions and cookies
An introduction to session tracking 204
Why session tracking is difficult with HTTP 204
How session tracking works in Java 204
An application that needs session tracking 206
How to work with sessions 208
How to set and get session attributes 208
More methods of the session object 210
How to enable or disable cookies 212
How to use URL encoding to track sessions without cookies 214
How to work with cookies 216
An introduction to cookies 216
How to create and use cookies 218
How to view and delete cookies 220
Four methods for working with cookies 222
A utility class for working with cookies 224
How to work with URL rewriting and hidden fields 226
How to use URL rewriting to pass parameters 226
How to use hidden fields to pass parameters 228
The Download application 230
The user interface 230
The file structure 230
The code for the JSPs and servlets 230
t




Murach's Java Servlets and JSP

Learn more about this book

Add this book to your cart