NelsonR
NelsonR

Reputation: 23

ASP.NET Membership / Identity MVC 5

I am aware that MVC 5 uses Microsoft.AspNet.Identity, however I am still very confused working around it and I cant seem to figure how to do the equivalent of:

Membership.GetUser(username).IsOnline

The general purpose would be to get a list of online users.

Upvotes: 1

Views: 956

Answers (1)

Hao Kung
Hao Kung

Reputation: 28200

There is no built in equivalent for IsOnline currently, you could replicate that functionality by tracking the last seen time for your users and then adding a method which checked whether they have been seen in the last 5 minutes.

We might add the last seen data to the default implementation in a future release.

Upvotes: 1

Related Questions