Hi,

as you are posting this on struts list I suppose you want to do something on 
the server If the user closes its browser, something like storing his logout 
time?
Though you might be able to do some cleaning operation on the client (via 
onunload and such methods) for some browsers, it might be even more difficult 
to send a message to the server during this cleanup. 
So what can you do? You could catch the invalidation of the session after its 
timeout (see HttpSession*Listener interfaces). But obviously if you for example 
have a login-mechanism that prevents a user to login twice and a user closes 
its browser he can't login til his session has reached timeout.

Bjoern

> -----Ursprüngliche Nachricht-----
> Von: Meenakshi Singh [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 19. Januar 2006 07:12
> An: Struts Users Mailing List (E-mail)
> Betreff: Urgent help needed
> 
> Hi,
> 
> 
> Can anybody tell me how can I detect the browser's close 
> button. & which works across all browsers.
> I have a requirement wherein I have to perform some steps if 
> the browser window is closed.
> 
> Some code example would be appreciated.
> 
> Please help me it's urgent.
> Thanks & Regards,
> Meenakshi.
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to