Explanation about redirect loop

Asked

Viewed 1,066 times

2

I p/ a meeting and will ask why have some data Redirect Loop. In the code, I put a false parameter and it has solved, but turns and moves it back. The question is: What is a redirect loop? What I want is just an explanation, a theory on the subject and nothing else. It’s not code how to avoid, it’s what it is even in theory.

1 answer

5


Redirect loop is when the following situation occurs:

Let A, B and C be any pages.

  1. when accessing A, it redirects to B.
  2. when accessing B, it redirects to C.
  3. when accessing C, it redirects to A.

Note that it formed an infinite looping of redirects. The browser, smart guy, identifies this case, and generates an error message instead of making requests until the user interferes with the process.

Another error that may occur is the "Too Many Redirects" error, which means there have been many redirects. Some browsers (Chrome if I’m not mistaken) account when sequence Directs occur and stop them at the time the quantity exceeds a value.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.