protected void clear_cart(object sender, EventArgs e) { HttpCookie cookie = Request.Cookies["user_id"];//getting the user_id Process_Executor exec = new Process_Executor(); string response = exec.clear_cart(cookie.Value); if (response == "CART_EMPTY") { Response.Redirect("~/Default"); } }