Hello,
 
With our application I use frames and the main frameset uses the event onUnload.
 
This event is called when the user does the following to close the browser (for Internet Explorer and Netscape):
 
ALT-F4 (on Windows), or
menu File | Close/Exit, or
double-click on the system menu, or
click on the "X" close button or
kill the browser with the task manager.
 
. . .
function closeTest() {
    if (self.isLogged) {
        window.open(URL, 'Logout', 'height=30,width=300,status=no,menubar=no,locationbar=no,location=no,title=no,resizable=no')
 }
. . .
self.isLogged = true;
<frameset cols="100,*" border="0" >
. . .
</frameset>
But if the browser or the system crashed, there is no way to catch this event ... :-)
 
Our goal was to catch the close event and then open a popup windows telling that the user has been disconnected. There is no way to prevent the window to be closed.
 
 
-----Original Message-----
From: Rakesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: disconnect

I am not sure if this question belongs here.
 
I have a web app (in struts). I need to expire the session if the user gets disconnected (and does not close the browser window). Any hints on how this is to be done ?
 
 
 
 Rakesh Ayilliath
(Software Engineer)
 
Synergy IT Innovations Pvt Ltd,
#196, 1st Floor, 9th Cross,
HMT Layout, RT Nagar
Bangalore 560032
 

Reply via email to