public static void SetCookie(this HttpCookieCollection cookies, string name, string value, string domain, TimeSpan expires)
 {
     cookies.SetCookie(name, value, domain, DefaultPath, DateTime.Now.Add(expires));
 }
 public static void SetCookie(this HttpCookieCollection cookies, string name, string value, DateTime expires)
 {
     cookies.SetCookie(name, value, null, DefaultPath, expires);
 }