CSRFHiddenField
Last updated
Was this helpful?
Generates a random token and stores it in the session cache to protect against Cross-Site Request Forgery (CSRF) attacks.
However, this method returns a hidden input field named "csrf"
#CSRFHiddenField()#
CSRFHiddenField(key=[string], forceNew=[boolean])key
string
false
The key to store the token under in the cache. Defaults to "default".
default
forceNew
boolean
false
If true, a new token will be generated and stored in the cache. Defaults to false.
false
Last updated
Was this helpful?
Was this helpful?
