Chapter 5. Session Management

Terms you'll need to understand:

  • Session

  • Session ID

  • Session timeout

  • Servlet attribute

  • Session events

  • Listeners

  • URL rewriting

Techniques you'll need to master:

  • Retrieve a session object across multiple requests to the same servlet or different servlets within the same Web app.

  • Store objects in a session object.

  • Retrieve objects from a session object.

  • Respond to the event when a particular object is added to a session.

  • Respond to the event when a session is created and destroyed.

  • Expunge a session object.

  • Know when a session object will be invalidated.

  • Understand URL rewriting.

Session Management Overview

This section of the exam focuses on how servlets create and manage sessions. The container stores state information locally on the ...

Get Java™ 2 Enterprise Edition (J2EE™) Web Component Developer Exam Cram™ 2 (Exam 310-080) 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.