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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.