title: ASP.NET Session in Global.asax
body: <p>Session in <strong>Application_AuthenticateRequest</strong> method in Global.asax is always null.Ive already try:</p>
  
  <pre><code>this.Session,HttpContext.Current.Session 
  </code></pre>
  
  <p>always null.</p>
  
  <pre><code>  protected void Application_AuthenticateRequest()
      {
          string userRole = string.Empty;
  
          if (Request.IsAuthenticated)
          {
              if (this.Session["UserRole"] == null)
              {
                 InsertSessionValue();
              }
              userRole =Session["UserRole"].ToString();
              HttpContext.Current.User = new GenericPrincipal(User.Identity, new string[] {userRole});
          }
      }
  </code></pre>
  
  <p>Ive also try to use Cache,but it doesnt work because i need unique information for each user.</p>
  
  <p>How to use Session in Global.asax?Is HttpApplication Application property unique for each user?</p>