I have created a small application which log data from client to server. I want to get the status of client application when it exit the application from task messenger. How do i get the client status.

Just like in skype.

I user exits skype form task messenger another user's skype shows got logged out this user.