cancel
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.

More McAfee Tools to Help You
  • Subscription Service Notification (SNS)
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • eSupport: Policy Orchestrator
  • Community Help Hub

      New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

    • Find Forum FAQs
    • Learn How to Earn Badges
    • Ask for Help
    Go to Community Help

    Join the Community

      Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

    • Get helpful solutions from McAfee experts.
    • Stay connected to product conversations that matter to you.
    • Participate in product groups led by McAfee employees.
    Join the Community
    Join the Community