title: Cannot Access Session From ASPX to Class Library
body: <p>I have set session in my presentation layer and I am trying to get that session value from my Class Library using the below code</p>
  
  <pre><code>var dt= System.Web.HttpContext.Current.Session["DT"];
  </code></pre>
  
  <p>But Object reference error is showing</p>