Check User if Authenticated

How to check that the receiver user is currently authenticated?

when intercepting the packet , i want to know if the receiver user is currently online or offline.

how can i check that ?

Thank you in advanced .