CsrfToken getToken(string $tokenId)
Returns a CSRF token for the given ID.
If previously no token existed for the given ID, a new token is generated. Otherwise the existing token is returned (with the same value, not the same instance).
CsrfToken getToken(string $tokenId)
Returns a CSRF token for the given ID.
If previously no token existed for the given ID, a new token is generated. Otherwise the existing token is returned (with the same value, not the same instance).
string | $tokenId | The token ID. You may choose an arbitrary value for the ID |
CsrfToken | The CSRF token |
Designed by : w10schools
service@w10schools.com
Please login to continue.