Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

recording time when the user closed browser

 
as chhipa
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I want to know if there is any mechanism is JSP through which we can detect the time when user closed the browser window so that we can record the logout time in database. It will be very nice if you can provide the sample code also.
Thank you.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in JSP for this.

There is no reliable way to know when a user closes a browser from the server.
  • Http is a stateless protocol
  • Computers crash.
  • Network connections dissapear.
  • Browsers can be configured to do or not do lots of things.
  • Users could type new URLs in the browser's address bar.


  • [ September 27, 2006: Message edited by: Ben Souther ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic