Instant messaging, detect when user goes offline before his session expires
posted 6 years ago
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.
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.