I have an application where I am making a call to a webmethod from Js.
$.ajax({
type: "POST",
url: "mypage.aspx/MyWebMethod",
....
....
});
In my C# webmethod I have set
[WebMethod(EnableSession = true)]
The problem is very strange and I donot even know if it is a Jquery or C# or server setting problem.
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.
Can someone please let me know what the problem could be?