In MVC5, I used my session variables, like this from System.Web
PayPalHandler.ExecutePayment( Convert.ToString(Session["paymentId"]), Convert.ToString(Session["payerId"]));
In ASP5 / MVC6, this is no longer an option, since System.Web does not exist. What is the correct equivalent way to use session variables in a new structure? The documentation is still very scarce.
source share