Showing results for 
Search instead for 
Did you mean: 

Cannot Logout the session using REST API

I'm using the api with suffix "/rs/esm/logout"

setting auth header : "authorization":"Session 123456"

doing a DELETE http method (without body)

Then I test the logout by doing a login , then using the session id created for the delete method.
But I'm getting http 401 error :
ERROR_InvalidSession (1)

Any idea what I'm doing wrong?

2 Replies

Re: Cannot Logout the session using REST API

​, did you ever get an answer to this question? I am receiving the same error.

Re: Cannot Logout the session using REST API

In case anyone stumbles across this in the future, I was able to get this working with the V2 API /rs/v2/esm/logout with appropriate headers, cookie, and an HTTP method of DELETE.

Member Rewards
McAfee Community rewards active and helpful members just like you. Click here to take a look at the first community members who received a special reward and were recognized by McAfee leader, Aneel Jaeel, for their participation and trusted knowledge in the community.