Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

client connection

 
Rahul Agarwal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well i am involved in a web project with a timer clock etc.
I want to see when exactly a client gets disconnected.
Disconnection may be either due to closure of webbrowser or
due to any type of dis connection.I want to trap time when this client gets disconnected.
I am using servlets,jdbc,sql server7.0,jawawebserver...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you could have an invisible applet sending a request every N seconds and note when that tick fails to appear! Thats the only thing I can think of that would record a broken connection.
Bill
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder if you use a javascript to capture the window close event, then upon getting this event, redirect to another page that calls a servlet to signal a disconnection. Just a thought.
Sean
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic