Thanks for the suggestion . I am able to catch the window close event.
 
The actual situation is like this:
--> user logs on to the site and is woking.
--> He gets disconnected in between and leaves his terminal without logging out or closing the browser window.
--> The web connection is estalished again.
--> Another user comes and refreshes the screen.
 
The old session should be invalidated and the new user should be made to login again.
 
 
 Rakesh Ayilliath
(Software Engineer)
 
Synergy IT Innovations Pvt Ltd,
#196, 1st Floor, 9th Cross,
HMT Layout, RT Nagar
Bangalore 560032
 
----- Original Message -----
From: Alan Inser
Sent: Tuesday, July 17, 2001 7:57 PM
Subject: RE: disconnect

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