Q: Does ASP.NET WebMethod request count for session time? I have an ASP.NET application which loads a page and then does all of the work by WebMethods. So for a long time the user does not refresh the page. I think after a while the session hits the timeout and session variables are cleared, because there is at least one WebMethod request at every N minutes (N is less than Session.TimeOut). Is that true? Is there a way to change this behaviour without increasing the TimeOut value..

A: I found this information over here:

Async postbacks will not keep session alive unless you are using
cookieless sessions. If you are using cookie based sessions (the
default), then the timeout is in the cookie. Ajax calls can not update
this cookie in the browser. As the session timeout logic requires
sending a new cookie and getting back on redirect, the ajax calls fail
to do this.
You could switch to sessionless for ajax calls (good performance idea) or go to cookieless sessions

