title: Static class and Session variables
body: <p>I have defined a static class. In that static class I have the following method.</p>
  
  <pre><code>public static int GetUserId()
  {
      if(IsUserLoggedIn())
      {
          return Convert.ToInt16(HttpContext.Current.Session["user"]);
      }
      return 0;
  }
  </code></pre>
  
  <p>My question is this: When that function run for each user, will each user get a different value? (considering each user session gets different userId for the Session["user"].</p>
  
  <p>I don't know if a static class is useful for this or can cause conflict issues. I am developing in C#/ASP.NET.</p>