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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "logging out" Watch "logging out" New topic

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
Similar Threads
Determining Folder/File Size
Original Servlet Name after a Forward to a jsp
URL changes after redirect
Programmatic Login to WebSphere admin console
Cell Phone Authentication with HTTP protocol