static ShoppingCart() { // If the cart is not in the session, create one and put it there // Otherwise, get it from the session if (HttpContext.Current.Session["ShoppingCart"] == null) { Instance = new ShoppingCart(); Instance.Items = new List<CartItem>(); HttpContext.Current.Session["ShoppingCart"] = Instance; } else { Instance = (ShoppingCart)HttpContext.Current.Session["ShoppingCart"]; } }
Session_OnEnd
Session.Abandon();
Session.Abondon(); Session.Clear();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)