title: NullReferenceException in Global.asax when referencing Context.User.Identity in Session_Start
body: <p>When I am debugging an application in ASP.NET, after about ~5 minutes I get a NullRefEx coming from global.asax.cs regarding:</p>
  
  <pre><code>protected void Session_Start(Object sender, EventArgs e)
          {
              WindowsIdentity identity = null;
              identity = (WindowsIdentity)(Context.User.Identity);
  ...
  </code></pre>
  
  <p>Context is Null at this point.  I am a noob in ASP.NET with regards to Global.asax.cs.  This code was written by another developer.</p>
  
  <p>EDIT:
  This is the code with HttpContext...</p>
  
  <pre><code>    protected void Session_Start(Object sender, EventArgs e)
      {
      WindowsIdentity identity = null;
      identity = (WindowsIdentity)(HttpContext.Current.User.Identity);
  </code></pre>