In MVC5, I used to use 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 as System.Web
does not exist. What is the proper equivalent way of using session variables in the new framework? Documentation is still very scarce.