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?
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.
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
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
is working on a reply...