Manually adding cookies to avoid exception in case of duplicate setcookie headers