This function takes the following parameters:
Function pointer with which the user can define their own function for setting the cookie in the foreign domain. The implementation defines the parameters.
Pointer to a pointer to agent defined parameters.
Pointer to the cookie.
An agent configuration instance returned by am_web_get_agent_configuration(). This parameter should not be NULL.