Session not timing out with EnableSessionState set to false

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.
 
S

Saravana

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top