title: How to get session value asp.net core inside a view
body: <p>I am trying to get session like this</p>
  
  <pre><code>@HttpContext.Session.GetString("some");
  </code></pre>
  
  <p>But I am getting </p>
  
  <p>*</p>
  
  <blockquote>
    <p>An object reference is required for the non-static field ......</p>
  </blockquote>
  
  <p>*</p>
  
  <p>Any one with ideas?</p>