📜 ⬆️ ⬇️

Redirect or not to redirect ...

Do you think that during automatic redirection (for example, when logging in to the site), should the user provide a link to the page to which he will be redirected, or is it not necessary? Which option is preferable?

Option 1:
header ("Location: www.sitename.dom/page");
exit();

Option 2:
echo '';
die ("Redirecting to this page…");


, 2 — , . , — , ? : - , , — . 0 , - — .

? .

')

Source: https://habr.com/ru/post/17256/


All Articles