Afte posting my question I realized I probably didn't explain my issue very well so here's an overview of what's happening:
1) A user loads the home page, (default,asp).
2) Upon entering the username and password, the information is authencated against the userdata in a database.
3) If the username / password are correct, then a session variable is set:
Session("VSession") = Session.SessionID
4) At this point all subsequent server client interaction is via HTTPRequest.
- function LoadPage(RStr)
-
{ var XMLreq = new ActiveXObject("Microsoft.XMLHTTP");
-
MLreq.open("GET", RStr, true);
-
XMLreq.onreadystatechange = function()
-
if (XMLreq.readyState == 4)
-
{ if (XMLreq.responseText.indexOf("Session Expired")!=-1)
-
{ location = "../default.asp"
-
}
-
document.getElementById("DivMain").innerHTML = XMLreq.responseText;
-
-
}
-
XMLreq.send(null);
-
}
-
-
when each HTTPRequest is received by the server I validate the session with the following function.
-
-
Function ValidateSession()
-
If Session("Vsession") = Nothing then
-
Response.Write("Session Expired")
-
Response.End
-
End if
Hopefully this is a better explaination of what I'm trying to do. The problem is that while the Session.Timeout = 20 my sessions seem to expire at random times well short of 20 minutes. Any help would be greatly appreciated. -Dennis