Reputation: 1071
so I need to know if a user is online how can i know that? (Iam know using membership provider)
and can't find a implementation(or tutorial) for this? I understand more or less how the membership provider do it, is the best option to do it like that? or is a better way?
some example will be nice
iam usgin mvc3 in my project
Upvotes: 0
Views: 292
Reputation: 887433
You need to store the last activity timestamp in your users table, and update it whenever you receive any HTTP request from a logged-in user.
A user can be considered "online" if their last activity happened recently. (the exact limit is up to you)
Upvotes: 1