Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nigel Wilson 945 posts 2077 karma points
    Sep 20, 2010 @ 20:11
    Nigel Wilson
    0

    Count of Logged In Members

    Hi there

    Not sure if this is the right place to ask but . . .

    I have a client who wants to have a "Who Is Online Now" section within their members area.

    I know you can determine if a single user is logged on, but is it possible to loop through all members and determine if they are logged in ?

    Currently the membership is only about 70, so in terms of overhead probably minimal impact to loop through them all.But I appreciate that as member numbers grow performance could be impacted quite a bit.

    Thanks

    Nigel

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 20, 2010 @ 20:16
    Dirk De Grave
    1

    Membership provider already has support for that, and because umbraco membership provider derives from that, it's also supported in umbraco: GetNumberOfUsersOnline()

     

    Hope this helps.

    Regards,

    /Dirk

  • Nigel Wilson 945 posts 2077 karma points
    Sep 20, 2010 @ 20:27
    Nigel Wilson
    0

    Dirk - wicked - thanks for the lightning fast response.

    Funnily enough I had just sent an email to my client telling them it might not be possible.

    Being able to go back to them now and say it is possible will make me look good.

    You da man !

    Cheers

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft