Session not timing out with EnableSessionState set to false

  • Thread starter Thread starter user_me
  • Start date Start date
U

user_me

I have a page with function 'myFunction()' that contains a call to
window.setTimeout("myFunction()", delay, "javascript") to invoke itself
every 'delay' minutes.

The function 'myFunction()' uses XMLHTTP to retrieve some information
from "myPage.aspx" [MSXML xmlhttp.open("GET", "myPage.aspx", false)]

myPage.aspx contains EnableSessionState="false" in its Page directive
and has C# code behind.

If I let this run without ever doing anything else, my session never
times out. It seems that hitting myPage.aspx is keeping my session
alive - but I don't want it to.
 
This is by design, setting enablesessionstate="false" doesnt help in your
case. One option to put your myPage.aspx in separate application and call it
in certain interval. Your main application session will timeout properly.
 
Back
Top