Forum Discussion

amrinderthandi's avatar
amrinderthandi
New Contributor
8 years ago

Expiring Session through http request

Hi,

 

I have successfully created a session by login through a http request using form based data. I need to login with different test users in different test cases to be used in my REST requests. The problem is that when I login first time, it seems I remain in the session as long as it doesn't expire on its own. I need to close the session in every test case before login to my new test case with different user. I don't know how I can achieve it. Could somebody please suggest me?

 

I have tried following ways:

1. Used GET http request with my Logout URL.

2. Under preference I checked the option 'Closes the HTTP connection after each HTTP request

 

but all in vain.

Kindly suggest.

 

Thanks.

2 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    You mean to say that the session is still active even after calling Logout?

    If that is the case, you must check with you team or service provider.
    • amrinderthandi's avatar
      amrinderthandi
      New Contributor

      Thanks for your Reply. Yes, Session remains there even after running Logout http request but when I run the same request in my browser, it just signs user out. I have never seen any help in the Smartbear help pages regarding closing/expiring session, that's why I am posting my request here. For your information, I tried with GET and POST requests both for logout like we use only POST during Login with form data.

       

      Thanks.