csrfGenerateToken
10
4

Overview ColdFusion Open BlueDragon Lucee

Generates a random token to be used as csrf token. This token is saved on session

Attributes

Name Required Type Default Description
10
4
forcenew No Boolean If set to true, this indicates that every time method is invoked, a new token should be generated. if the flag is set to false and if a token exists for the given key then on re-invocation, same token will be returned.
10
4
key No String Generates a new random token to be used as csrf token for the give key. This token is saved in session with respect to the give key