I have a question about tokens. I understand that they are random characters used for security purposes but just how do they work and what do they protect against?
I have a question about tokens. I understand that they are random characters used
Share
Authentification mechanism creates a token when form displayed, and was stored it on server side.
Also auth mechanism adds token as hidden input to form. When you send it, auth system check is it in server-side storage.
If token found, authentification process will continue and token was removing.
It protects from spamming form action script.
Example using with logout url:
Script, that processing logout: