M
M
Max2016-12-22 20:47:45
PHP
Max, 2016-12-22 20:47:45

"Too many redirects" error. How to disable the browser redirect limit?

Good day! My PHP script is written in such a way that upon reaching the end of execution (5-30 minutes 1 cycle, in which there are 15 redirects), it looks for new tasks to be executed, and if there are, it continues to be executed, it redirects to the 1st step with a new task (config).
I ran into a problem that after a certain number of cycles (I planned to leave the computer for half a day and move away), the Chrome browser gives me an error "The site scripts.loc redirected too many times." Moreover, it seems that exactly 20 redirects are enough for him and it does not matter in what period of time.
Where can I set this limit for triggering the maximum number of redirects, or even disable it for certain sites? Googled, there is no such problem anywhere, basically everyone has jambs with virus engines, etc.
I'm not going to rewrite the script, it was specially written in this way.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2016-12-22
@sim3x

AJAX is supported by IE since version 5.0
superuser.com/questions/804385/edit-or-extend-chro...

L
latteo, 2016-12-22
@latteo

Use browser redirect:
meta tag in head
https://www.w3.org/TR/WCAG20-TECHS/H76.html
or js
www.w3schools.com/js/js_window_location.asp
And it's best to run the php script through the console, my parsers work for weeks and only stop due to the need to restart the OS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question