Add csrf token to session
There is the possibility of store a variable within the sessions eg:
$csrftoken = bin2hex(random_bytes(32));
In this way, it gives syntax error within the authentication
Or what way could I use to have a security token csrf?