Forum Discussion

Lakshman's avatar
Lakshman
New Contributor
16 years ago

To maintain the same HTTP session id for the request under the test case

Hi all,
    I wanted all the http request for the test steps with in the test case to have the same http session id. I see that the options over the test case has a check box for 'Maintain HTTP session', which I assume would maintain the same http session parameters for every http request but, though this check box was enabled different http session id were seemed to be sent for every http requests.
    Is it possible to send the same http session id for every request under the test case?

Thanks.

3 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    what exactly do you mean by "HTTP Session ID"? Is this being returned as a cookie with the first response received by your testcase?

    regards!

    /Ole
    eviware.com
  • Lakshman's avatar
    Lakshman
    New Contributor
    Hi,
        The HTTP session id here is the one that the containers like tomcat or jetty would create when the getSession() is invoked over the Servlet request object. This session id would be sent back in the servlet response object so that the client would send this session id for the subsequent http request to the server.

    Thanks.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    ok.. can you check in the http-log that the server is actually returning a session id which is not being sent by soapUI in the second request despite you have selected the "Maintain HTTP Session" option?

    regards!

    /Ole
    eviware.com