55
Chapter 6
Session Managers
Session objects maintain state and user identity across multiple page requests over
the normally stateless HTTP protocol. A session persists for a specified time
period, across more than one connection or page request from the user. A session
usually corresponds to one user, who may visit a site many times. The server can
maintain a session either by using cookies or by rewriting URLs. Servlets can
access the session objects to retrieve state information about the session.
This appendix has the following sections:
• Session Overview
• Specifying a Session Manager
• IWSSessionManager
• MMapSessionManager (Unix Only)
• Deprecated Session Managers
• Load Balancing, Session Failover, and Session IDs
Session Overview
An HTTP session represents the server’s view of the session. The server considers a
session new under these conditions:
• The client does not yet know about the session.
• The session has not yet begun.
A session manager automatically creates new session objects whenever a new
session starts. In some circumstances, clients do not join the session, for example, if
the session manager uses cookies and the client does not accept cookies.
Commentaires sur ces manuels