SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a userID/userName, and I want to know if that user is currently loggedon to the SharePoint site.

The SPUser object does not seem to have any of these properties. I looked at Membership.GetUser("username").IsOnline, but that threw an "Access Denied" error.

Is there any way to achieve this?

Many Thanks!

UPDATE: I even tried to run with ElevatedPrivelges. The error is that current user does not has access to /APP_DATA folder.

share|improve this question

The disassembly for the IsOnline property looks like this:

return this.LastActivityDate.ToUniversalTime() > DateTime.UtcNow.Subtract(new TimeSpan(0, SystemWebProxy.Membership.UserIsOnlineTimeWindow, 0));

Is it possible you could use the same methodology?

Not like this is an actual real time tracker or anything ...

The other option would be to provision a delegate control and use JavaScript object model to push user actions into a list. You could probably just overload the SearchBoxEX control to add tracking. Seems like a waste to me though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.