I am building a chat system in an asp.net MVC website, if the user has no actions on the website for more than 2 minutes I will set his status to away.
My question is, how to know if the user is offline, offline means he closed the website or signer out.
I knew that there is an isOnline property in the Membership classes but I am not using Membership for secure login in this website.
Is there a way to know if the user is online or not,
Or how this membership.IsOnline is implemented to make the same in my code.