title: Is it safe to access asp.net session variables through static properties of a static object?
body: <p>Is it safe to access asp.net session variables through static properties of a static object?</p>
  
  <p>Here is what I mean:</p>
  
  <pre><code>public static class SessionHelper
  {
      public static int Age
      {
          get
          {
              return (int)HttpContext.Current.Session["Age"];
          }
  
          set
          {
              HttpContext.Current.Session["Age"] = value;
          }
      }
  
  
      public static string Name
      {
          get
          {
              return (string)HttpContext.Current.Session["Name"];
          }
  
          set
          {
              HttpContext.Current.Session["Name"] = value;
          }
      }
  }
  </code></pre>
  
  <p>Is it possible that userA could access userB's session data this way?</p>