3.1.5.1 Creating a Session Context by Using the Connect or Bind Request Type

The client establishes a Session Context in the EMSMDB interface by issuing a request, as specified in section 2.2.2.1, using the Connect request type as specified in section 2.2.3.3.1, including the contents of the Connect request type request body, as specified in section 2.2.4.1.1. The client establishes a Session Context in the NSPI interface by issuing a request, as specified in section 2.2.2.1, using the Bind request type as specified in section 2.2.5.1, including the contents of the Bind request type request body, as specified in section 2.2.5.1.1. An example of using the Connect request type to establish a new Session Context is given in section 4.1.

The client can pass an X-ClientInfo header, as specified in section 2.2.3.3.4. This information is simply returned to the client in the response.

As specified in section 3.2.5.1, the server returns cookies used to identify the Session Context that has been created. The client MUST store all returned cookies and associate them with the Session Context. The client MUST include all cookies received from the previous call to the server for a given Session Context when issuing the next request to the server for that Session Context. If the server uses a session sequence cookie to guarantee the sequencing of requests, the client MUST pass this cookie, along with the session context cookie, to the server on the next request. The Cookie header, specified in section 2.2.3.2.4, is used to pass the cookies.