title: jquery c# webmethod
body: <p>I have an application where I am making a call to a webmethod from Js.</p>
  
  <pre><code> $.ajax({
      type: "POST",
      url: "mypage.aspx/MyWebMethod",
      ....
      ....
      });
  </code></pre>
  
  <p>In my C# webmethod I have set </p>
  
  <pre><code>[WebMethod(EnableSession = true)]
  </code></pre>
  
  <p>The problem is very strange and I donot even know if it is a Jquery or C#
  or server setting problem.</p>
  
  <p>Problem: 
  When I run the webpage and start using the application, everything working fine.
  However, if I just keep the webpage open (for something like 5 min) 
  and donot do anything with it..and then try to use the application, the ajax call fails.</p>
  
  <p>Can someone please let me know what the problem could be?</p>