File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes logging out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "logging out" Watch "logging out" New topic
Author

logging out

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I have a chat application that uses servlets. The applet client constantly uses GET within a loop to get new messages from the servlet. However, I need to send a "xxx has left the room." to all clients when xxx becomes disconnected to the servlet.
Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, I thought about the possible implementations. Can I put an object that implements HttpSessionBindingListener in session, that once the browser is clicked off, session will be invalidated, and HttpBindingListener can log the user off through unbound? But then will session be invalidated when user click the browser off?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logging out