Concept Flow - CSRF protection mechanism
User sends form request
Server checks CSRF token
Token valid?
No→Reject request
Process request
Send response back
The server checks if the CSRF token sent with the form matches the one stored in the user session. If valid, the request is processed; otherwise, it is rejected.