Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Instant messaging, detect when user goes offline before his session expires  RSS feed

 
Alex Roskin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Java, Servlet, and JSP instant message application where members send instant messages to each other, the issue is when a memeber closes his instant message window, another member thinks he is still online untill his sesion expires 30 minutes later.

Thanks,
Alex
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And? What are you asking?
 
Alex Roskin
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can the other user be notified that his buddy left the chat session, so he does not get frustrated sending instant messages with no one getting them?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All you can detect is if the page unloads.
 
Dieter Quickfend
Bartender
Posts: 543
4
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your session timeout doesn't have to be half an hour. You can set a really short session timeout (couple of seconds) and make a timed ajax request in your page. Not saying that's the best idea, but you could.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!