title: To store Values in session in static method
body: <p>I have a static method on every button click i want to store username in a session.So the session hold multiple values.And I have to check the same value exists in session for more than three times .Pls help me.</p>
  
  <p>Inside Static Method:</p>
  
  <p>//Button CLick </p>
  
  <pre><code>string[] a = new string[] { username };
   HttpContext.Current.Session["User"] = a;
   string[] data = (string[])HttpContext.Current.Session["User"];
  </code></pre>