title: Session state is not available in this context in Global.asax
body: <p>I am getting and error message when i'm trying to get Session value in Global.aspx:</p>
  
  <p><a href="https://i.stack.imgur.com/UFD9T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UFD9T.png" alt="enter image description here"></a></p>
  
  <p>I have tried another method to get Session value and result is same but message is different:</p>
  
  <p><a href="https://i.stack.imgur.com/rIpfW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rIpfW.png" alt="enter image description here"></a></p>
  
  <p>This error occur in Application_Error method and Session is not null but it shows that it is null. I have put this Session code in (HttpContext.Current.Session != null) condition so it is working fine but i want session value which is not getting with this method.</p>
  
  <p><a href="https://i.stack.imgur.com/MOL1J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MOL1J.png" alt="enter image description here"></a></p>
  
  <p>Please help me.
  Thanks</p>