Write the PHP expressions to generate a CSRF token on form render and verify it on form submission.
A password-change form has no CSRF protection and is vulnerable to forged cross-site requests.
Ready to try it?
Create a free account and subscribe to take "Write CSRF Token Generation and Verification". Earn 90 XP and track your internship progress.
Already have an account? Sign in