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.