As far as I know, with the first ASP page from the scope of that
application is what starts an ASP session.
but when I analyze my *who is on the site and where they are page*, I am
seeing many different session.ID's belonging to the same IP. I maintain
sessions by simply updating an iframe which comes from an include file
that penetrates even into the htm files. I built my application so that an
this iframe is created by javascript using the document.write ( iframe ...
) technique.
But I write that I frame only if I detect that client enabled the cookies.
That's what puzzling me. My refresh rate on the iframe is 30 seconds. And
yet, I am see IP.
As if the cookie test fails...
This test should not fail.
<script>
var cookieBackup = document.cookie
document.cookie = "cookie=ON"
var cookieOk = document.cookie.indexOf("cookie=ON") > -1
document.cookie = cookieBackup
if (cookieOk) {
var sWebURL = escape(window.document.location.href);
var sRefreshRateInSeconds=30
var
sURL='http://www.mySite.com/myAppSpace/trackInteract.asp?RefreshRateInSeconds='+sRefreshRateInSeconds+'&WebURL='+sWebURL;
var sFrameCode = "<IFRAME name='trackinteract' SRC='" + sURL + "' width=0 height=0
frameborder=0></IFRAME>"
document.write (sFrameCode)
}
else
{
//No cookies // no session// no refresh !..
}
</script>
And the above gets embedded into many html pages. Only in the case of
browser accepting cookies, I will execute the if (cookieOk) branch.
But I do get new sessions for the same IP every other RefreshRateInSeconds
sec. Some of these htm pages have references to some image files from the
ASP scope.
Can images or straight HTM files initiate sessions.
I am hundred percent sure it cannot. Then What is it that starts sessions
this way ???
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]