I need the following: Redirect if? Token = etc is not set - link - > link
If the token is not valid according to the session in php, show echo error message.
Update: On the page there is a form, the action is empty, that is, the script is executed on the same page. I should not generate a new one every time there is a post.
Thank you.