title: How do I persist session values in ASP.NET?
body: <p>I'm implementing <code>IHttpHandler</code> and <code>IRequiresSessionState</code> and I'm using <code>context.Session</code> but after I set up a value in Session, it's lost in the next request. What can I do to persist the values ?</p>
  
  <pre><code>$.ajax({
          url: "/test.test", 
          type: "POST",
          data: "{'type':'GetStep'}",
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (result) {...}
   });
  </code></pre>
  
  <p>The second call is similar to this, but the values that get set when I call this function are also lost on the next request.</p>
  
  <pre><code>public void ProcessRequest (HttpContext context)
  {
      context.Session ["Game"] = new Game (); // next time it is null
  }
  </code></pre>
  
  <p>How do I persist values in Session state in ASP.NET ?</p>