SRV.7.2 Creating a Session


Because HTTP is a request-response based protocol, a session is considered to be new until a client "joins" it. A client joins a session when session tracking information has been successfully returned to the server indicating that a session has been established. Until the client joins a session, it cannot be assumed that the next request from the client will be recognized as part of the session.

The session is considered to be "new" if either of the following is true:

  • The client does not yet know about the session.

  • The client chooses not to join a session. This implies that the servlet container has no mechanism by which to associate a request with a previous request.

A servlet developer must design their application to handle a situation where a client has not, cannot, or will not join a session.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net