/// <summary>
/// Copy cookies from the inbound response to the outbound response
/// </summary>
/// <param name="source">Reply from the intended destination</param>
/// <param name="destination">response being sent back to the ajax request</param>
public static void CopyCookiesTo(this HttpWebResponse source, HttpResponse destination)
{
foreach (HttpCookie cookie in source.Cookies)
{
destination.SetCookie(new HttpCookie(cookie.Name, cookie.Value));
}
}