Hey Steve,
I've been searching Google for a while, and found nothing.
However, I came up with this idea: on unload, cause a popup to come up that goes to logout.jsp (or whatever your logout page is, with the additional ?this=that&that=this if needed). Put your handleLogoff stuff (can you tell I don't know a thing about Java? :)) on that page. Then close the window immediately with JavaScript
:
window.close();
So it would look like this:
-- page1.jsp --
<uix:body onUnload="
var iX = window.document.body.offsetWidth + window.event.clientX ;
var iY = window.event.clientY ;
if (iX #60;= 30 #38;#38; iY #60; 0 )
{
alert('Logging User Off');
alert('User Logged Off');
}
window.open("logout.jsp?this=that&that=this");
">
-- end page1.jsp --
-- logout.jsp --
<script language=javascript>window.close()</script>
-- end logout.jsp --
If the logout page prompts "This script is trying to close the window...", see the fourth post in
this page.
I have a login script using PHP, it's lots easier than this. Closing the window ends the session. :)
Hope this helps you,
----------
---Snib---
----------