Diego_DX
Diego_DX

Reputation: 1071

how can i know if user is online not using membership provider

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

Answers (1)

SLaks
SLaks

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

Related Questions