Skip Navigation
Error JSESSIONID not specified or invalid
Answer ID 8130   |   Last Review Date 12/31/2018

What does the error "JSESSIONID not specified or invalid" mean?


Chat APIs


When you see an invalid SESSIONID during a chat session, it is because you are not passing back the correct sessionid in the <SessionID> element.

The error you will see is "JSESSIONID not specified or invalid".

If so, be sure you are passing the SessionID that you would have received from the RequestChat call in the RequestChatResponse.  It sounds like it is not in sync at some point.

When you call RequestChat, you will get a RequestChatResponse message.  This response will include the SessionID that you will need for RetrieveMessages, as well as PostChatMessage, and TerminateChat.  This SessionID needs to be included in the ChatClientInfoHeader.

For example:

<soapenv:Envelope xmlns:soapenv="" xmlns:v1="" xmlns:v11="">
    <ChatClientInfoHeader xmlns="">
      <AppID>Sample Chat Client</AppID>

For a more complete example, see Answer ID 8129: Chat API Example Chat Session