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:
A servlet developer must design their application to handle a situation where a client has not, cannot, or will not join a session. |