Copied to clipboard

Flag this post as spam?

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


  • brinck10 24 posts 55 karma points
    Apr 07, 2012 @ 17:56
    brinck10
    0

    Checking if Member is Online by MemberID

    Hi there folks.

    I've been searching for hours trying to find a function that allows me to check, if a given member is online.

    The case is simple; a third-party site obtains a member id through a link and then it responds to one of my pages with the given id. By doing so, I need to check whether the id given is actually existing AND online. How is that done? Is there any property of the MembershipProvider that is true when the user is online?

    I've tried

    [code]umbraco.library:GetMember(1000).IsLoggedOn()[/code]

    but it doesn't work. How can I solve this?

    I'm working in Umbraco 4.02.

    /Brinck10

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Apr 08, 2012 @ 09:03
    Jeroen Breuer
    0

    Sorry not sure if this is possible. The IsLoggedOn will probably check if the member is only on the current pc you're on and probably uses something like sessions. If the member is not online on your current pc it will return false. Have a look at the source of the IsLoggedOn method to see how it works.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft