Reputation: 23
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
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