Openfire showing user status as online even after the connection is closed

Hi,

I am using smack4.2.1 library for connecting to openfire4.2.1. Below are the steps for reproducing the issue

  • run a sample main java program which connects to openfire using xmpptcpconnection
  • i can able to see the user session in the “sessions” tab of openfire admin console
  • when i terminate the java program, session is closed and disappeared from “sessions” tab but still the user status is showing as online. It is going offline after some minutes in the range of 5 to 15minutes which is not consistent

Can anybody please help on this.