Validates the given token against the same stored in the session for a specific key.
a Boolean value. true is successful.
Display and formatting functions
CSRFVerifyToken(token [,key])
ColdFusion 10: Added this function.
Parameter |
Required\Optional |
Description |
|---|---|---|
token |
required |
Token that to be validated against the token stored in the session. |
key |
Optional |
The key against which the token be searched. |
Use this function to validate the given token against the same stored in the session for a specific key.
<cfset token=form.token> <cfset validate = CSRFverifyToken(token)> <cfoutput >#validate#</cfoutput>
Sign in to your account