That was totally funny , In my openfire server there was setting like :
i was getting offline message after login because i was changing the status of user as offline while they want to logout but in case when internet connection off i cant change status offline through asmack client to openfire server and that was the reason why it was not changing the user status till 360 sec and keep consider that user as online user.