# No active session(s) found matching LogoutRequest

**URL:** <https://community.auth0.com/t/no-active-session-s-found-matching-logoutrequest/10615>\
**Category:** Get Help\
**Tags:** logoutrequest, logout, saml\
**Created:** [April 4, 2018, 2:36am UTC](https://community.auth0.com/t/no-active-session-s-found-matching-logoutrequest/10615 "2018-04-04T02:36:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acabrera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/acabrera/32/8016_2.png) [@acabrera](https://community.auth0.com/u/acabrera)\
**Post date:** [April 4, 2018, 2:36am UTC](https://community.auth0.com/t/no-active-session-s-found-matching-logoutrequest/10615/1 "2018-04-04T02:36:19Z")

</div>

I’m using Auth0 as a SAML IdP. Using the “Addon: SAML2 Web App” page, I can click on the “Identity Provider Login URL” and I get logged into my SAML SP. When I log out of my SAML SP, I get the error:

```
No active session(s) found matching LogoutRequest

```

My SAML2 Web App addon config is

{  
“nameIdentifierFormat”: “urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress”,  
“nameIdentifierProbes”: [  
“[http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress](http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress)”  
],  
“logout”: {  
“callback”: “https://MY\_AUTH0\_DOMAIN/samlp/CLIENT\_ID/logout”  
}  
}

Logging out of my SAML SP results in an HTTP GET

https://MY\_AUTH0\_DOMAIN/samlp/CLIENT\_ID/logout?SAMLRequest=\<base 64 request\>

The decoded request is

\<saml2p:LogoutRequest ID=“f550886a-477a-4f03-baf0-15858d673bba”  
IssueInstant=“2018-04-04T02:12:44.839Z” Version=“2.0”  
xmlns:saml2p=“urn:oasis:names:tc:SAML:2.0:protocol”\>  
\<saml2:Issuer xmlns:saml2=“urn:oasis:names:tc:SAML:2.0:assertion”\>urn:MY\_AUTH0\_DOMAIN\</saml2:Issuer\>  
\<saml2:NameID xmlns:saml2=“urn:oasis:names:tc:SAML:2.0:assertion”\>logout user\</saml2:NameID\>  
saml2p:SessionIndex\_s7RKD2yGJkghhqdufiTTjw9W-iUkmNK3\</saml2p:SessionIndex\>  
\</saml2p:LogoutRequest\>

The SessionIndex matches the successful login response. It seems weird that the NameID is “logout user” and not the original NameID that was in the successful SAML login response; that could be a red herring.

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [April 21, 2018, 2:31pm UTC](https://community.auth0.com/t/no-active-session-s-found-matching-logoutrequest/10615/2 "2018-04-21T14:31:50Z")

</div>

Hi @acabrera. Just answered your ticket, but double-posting here in case it helps other.

As you guessed, the incorrect `NameID` is causing the error here. The `NameID` in the SAML Logout Request sent by the service provider (client application) needs to match the `NameID` originally received from Auth0 in the SAML Assertion.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 12:51pm UTC](https://community.auth0.com/t/no-active-session-s-found-matching-logoutrequest/10615/3 "2019-07-25T12:51:15Z")

</div>


