How to access the Session in ASP.NET Core via static variable?
<p>In earlier version of Asp.Net session can be accessed in any page like a static variable using </p>

<pre><code>System.Web.HttpContext.Current.Session["key"]
</code></pre>

<p>In Asp.Net Core, How to access session in different class called via controller, without passing the session property as an  additional parameter in the constructor of all classes</p>