public function createAndSetCsrfCookie($val)
    {
        $masked = $this->client->maskToken($val);
        $name = $this->client->getCsrfParamName();
        $this->setCookie($name, $val);
        return [$name, $masked];
    }
public function createAndSetCsrfCookie($val)
    {
        $masked = $this->client->maskToken($val);
        $name = $this->client->getCsrfParamName();
        $this->setCookie($name, $val);
        return [$name, $masked];
    }
public function createAndSetCsrfCookie ( $ val ) { $ masked = $ this -> client -> maskToken ( $ val ) ; $ name = $ this -> client -> getCsrfParamName ( ) ; $ this -> setCookie ( $ name , $ val ) ; return [ $ name , $ masked ] ; }
This function creates the CSRF Cookie.
@param string $val The value of the CSRF token
@return string[] Returns an array containing the name of the CSRF param and the masked CSRF token.
This function creates the CSRF Cookie .