# Clear cookies upon logout

**URL:** <https://community.auth0.com/t/clear-cookies-upon-logout/98600>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [January 20, 2023, 8:38pm UTC](https://community.auth0.com/t/clear-cookies-upon-logout/98600 "2023-01-20T20:38:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![coachadnyc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/coachadnyc/32/36752_2.png) [@coachadnyc](https://community.auth0.com/u/coachadnyc)\
**Post date:** [January 20, 2023, 8:38pm UTC](https://community.auth0.com/t/clear-cookies-upon-logout/98600/1 "2023-01-20T20:38:00Z")

</div>

Hi, I have a client that uses auth0 for 3 of their sites. When a user logs out of one of the sites and then signs back in it automatically signs them in and does not ask for credentials. Is there a way to completely clear their cookies so once they logout and then click the sign in button they aren’t already authorized? Our client has users that share computers so this is a big issue when user #2 is automatically signed into user #1’s account.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 23, 2023, 3:40pm UTC](https://community.auth0.com/t/clear-cookies-upon-logout/98600/3 "2023-01-23T15:40:45Z")

</div>

Hi @coachadnyc,

The `/logout` endpoint will clear the session and the subsequent login requests should require new credentials.

Can you determine if your user are hitting that endpoint when they are logging out?

---

<div class="post-metadata">

**Author:** ![coachadnyc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/coachadnyc/32/36752_2.png) [@coachadnyc](https://community.auth0.com/u/coachadnyc)\
**Post date:** [January 23, 2023, 4:49pm UTC](https://community.auth0.com/t/clear-cookies-upon-logout/98600/4 "2023-01-23T16:49:38Z")

</div>

Hi, we had previously implemented the logout endpoint in our logout method however it was still logging them in without asking for new credentials. I had found in the api docs that the logout api just invalidates the Single Sign-on (SSO) cookie in Auth0 but the cookie still remains in the browser, I’m assuming that is why it’s still signing them back in?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 23, 2023, 8:09pm UTC](https://community.auth0.com/t/clear-cookies-upon-logout/98600/5 "2023-01-23T20:09:33Z")

</div>

Could you please DM me a [HAR](https://auth0.com/docs/troubleshoot/guides/generate-har-files) file of the transaction you are describing?

i.e. Login with Credentials → Logout (with /logout endpoint) → Silent Login

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 28, 2023, 1:21pm UTC](https://community.auth0.com/t/clear-cookies-upon-logout/98600/6 "2023-03-28T13:21:16Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
