I am trying to access the session values in .CS file but getting the following error:
'HttpContext' does not contain definition for 'Current'
This is my code:
form.aspx.cs
Session["from"] = lblMgrMailFrom.Text;
class.cs located in a .NET Standard library
string from = System.Web.HttpContext.Current.Session["from"];