CODE
HttpCookie myCookie = new HttpCookie("myCookie ");
myCookie.Values["UserEmail"] = Session["user"].ToString();
myCookie.Values["ProductName"] = product_name;
myCookie.Values["ProductQuantity"] = quantityTxtBox.Text;
myCookie.Values["TotalPrice"] = totalPrice.ToString();
myCookie .Expires = DateTime.Now.AddHours(1);
Response.Cookies.Add(myCookie);
myCookie.Values["UserEmail"] = Session["user"].ToString();
myCookie.Values["ProductName"] = product_name;
myCookie.Values["ProductQuantity"] = quantityTxtBox.Text;
myCookie.Values["TotalPrice"] = totalPrice.ToString();
myCookie .Expires = DateTime.Now.AddHours(1);
Response.Cookies.Add(myCookie);
Hi guys, I have this chunk of code that adds cookies with values, such as UserEmail, ProductName, ProductQuantity and TotalPrice. How do I append a new cookie to the existing cookie without deleting the old ones? Please advise, thanks!