Lucee Function Reference
csrfverifytoken()
Validates the given token against the same stored in the session for a specific key.
Example
csrfverifytoken(string token,[string key,[boolean remove]]):boolean
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| token | string | Yes | Token that to be validated against the token stored in the session. | |
| key | string | No | The key against which the token be searched. | |
| remove | boolean | No | false | Also remove the token from the session if it exists. |