createCsrfCookie() protected method
Creates a cookie with a randomly generated CSRF token.
Initial values specified in $csrfCookie will be applied to the generated cookie.
See also $enableCsrfValidation.
protected yii\web\Cookie createCsrfCookie ( $token ) | ||
---|---|---|
$token | string |
The CSRF token |
return | yii\web\Cookie |
The generated cookie |
Please login to continue.