I'm sure you can use a javascript function to capture the UnLoad event and then call a page in your server, try this:
<script language="javascript">
<!--
function logOff() {
newWind = window.open ("LogOff_Page.jsp","Mywindow","HEIGHT=100,WIDTH=350")
// this will pop-up a small window, you may decide the size though
}
}
//-->
</script>
<body onUnload="logOff()")
><-- your page here -->
</body>
Ronel
if you don't need additional information from the client browser and just want to store data that is allready in the server side, you may choose the notification mechanism that the session object implements - just after the given time of inactivity the session object gets destroyed and at that time the notification handler is calles. just use that mechanism, it's very easy and secure!