PHP·98 questions

How to protect against CSRF?

Answer
CSRF token in form.
Generation: bin2hex(random_bytes(32)).
Save in session.
Check upon receipt.
Frameworks do it automatically.
Was this answer helpful?

More questions in this topic

Related questions from other topics