Good morning community:
I am currently working on a system, the validation redirect, that is, after the system validates all the data entered and proceeds to give access to the system, it always did it in the small projects that I had worked in this way:
header('Location: blablabla.php');
However, a person recently mentioned that it was safer to do it this way:
header('Location: blablabla.php', true, 301);
exit();
I've been looking for documentation about true, 301 to see why and how safe it is and I really do not get any information on the web that satisfies me, I appeal to the community for their recommendations.
Happy day