Good day! There is a registration form, at each stage of which we check where the user came from (from our site, or from something completely different) with the help of $_SERVER[HTTP_REFERER]
. Everything would be fine, but when you refresh the page, $_SERVER[HTTP_REFERER]
simply remains empty, so the check at the stage fails and gets an error.
How can you overcome this, i.e. so that even after the update we know that the user is exactly ours?