View Single Post
  #7 (permalink)  
Old 08-03-2007, 04:58 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Thumbs up Re: Track User information

hi.....

if user closed the browser the unload event will not help you to track the user..because if u referesh the page also unload event will fire..

Below code is helpful to track the user while closing the browser

I have done the user tracking by ..

<script language="JavaScript">
<!--
function closeWindow(evt) {

var e = (window.event) ? window.event : evt;

if (e.clientX < 0 && e.clientY < 0)
{

(new Image()).src="logout.php?value=0";
alert("logout")

}

return true;
}

// -->
</script>
</head>
<body onunload="closeWindow(event)" >


but it works only in IE...not FF
__________________
The KINGMAKER
Makes Every Thing Possible

Stuffs (My Blog)

Last edited by kingmaker : 08-03-2007 at 05:01 AM.
Reply With Quote