Hi Guys,
I am using the following javascript code in my dbconnect.asp file to catch the window close event to update the database in logout.asp.
window.onbeforeunload =
function(){
if((window.event.clientX<0) || (window.event.clientY<0)){
changeStatus();
}
}
function changeStatus() {
window.location = "logout.asp"
} this code works fine but when I am navigating the site and click the browser back button the system is throwing me out. how can I prevent this
Can anybody help me with this?
Thanks in advance
sudha