Yes, I know how to get the current location. But, I want to check the location a user is GOING to. Why? Well, if a user is leaving my site, I want to end the session so that the server is freed of that persons session varibles. At any givien time, there could be 1000 or more users on the site. This is an increase that has not happened yet, but is projected to happen within the next couple of weeks. In order to keep the server up and running, I wanted to reduce the strain. So, I want to force the session to end when I leave the page.
So, my question to you is...how? Currently, I have a function running when the onUnload event occurs. But, is there a way to get the address that the user types into the address bar? If I don't check this, the window will end the session if a user clicks the refresh button.
Any and all suggestions are appreciated. Thanks.
So, my question to you is...how? Currently, I have a function running when the onUnload event occurs. But, is there a way to get the address that the user types into the address bar? If I don't check this, the window will end the session if a user clicks the refresh button.
Any and all suggestions are appreciated. Thanks.