# ERR\_TOO\_MANY\_REDIRECTS on logout

**URL:** <https://community.auth0.com/t/err-too-many-redirects-on-logout/109075>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [June 12, 2023, 2:15pm UTC](https://community.auth0.com/t/err-too-many-redirects-on-logout/109075 "2023-06-12T14:15:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dotaolaoqua](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dotaolaoqua](https://community.auth0.com/u/dotaolaoqua)\
**Post date:** [June 12, 2023, 2:15pm UTC](https://community.auth0.com/t/err-too-many-redirects-on-logout/109075/1 "2023-06-12T14:15:46Z")

</div>

Hi, I’m having issue to logout. I’m getting ERR\_TOO\_MANY\_REDIRECTS error.  
Here’s the code below.

public ActionResult LogOff() {

```
  HttpContext.GetOwinContext().Authentication.SignOut(CookieAuthenticationDefaults.AuthenticationType);
        HttpContext.GetOwinContext().Authentication.SignOut("Auth0");

```

return RedirectToAction(“login”, “Account”);  
}

Any idea why?

---

<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:** [June 13, 2023, 10:18am UTC](https://community.auth0.com/t/err-too-many-redirects-on-logout/109075/2 "2023-06-13T10:18:37Z")

</div>

Hey there!

Check this thread and let us know if that was helpful anyhow!

> [@Redirect too many times](https://community.auth0.com/t/redirect-too-many-times/35606/6):
>
> Looks like when /callback route is called, it redirects back to /login route, and then auth0 /authorize route, and /callback again causing an infinite loop

---

<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:** [June 27, 2023, 10:19am UTC](https://community.auth0.com/t/err-too-many-redirects-on-logout/109075/3 "2023-06-27T10:19:12Z")

</div>

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