Hi Nick,
From your description, you're encountering some problem when using
Membership.GetNumberOfUsersOnline API, correct?
According to your scenario, the number changed when you call it second
time. Based on my research, the GetNumberOfUsersOnline will be affected
when some of the following methods are called(from the MSDN document)
==================
The last-activity date/time stamp is updated to the current date and time
when user credentials are validated by way of the ValidateUser or
UpdateUser method or when a call to a GetUser overload that takes no
parameters or one that uses the userIsOnline parameter to specify that the
date/time stamp should be updated.
============
#Membership..::.GetNumberOfUsersOnline Method
http://msdn.microsoft.com/en-us/library/system.web.security.membership.getnu
mberofusersonline.aspx
Therefore, I wonder whehter any of the methods are called so that all the
users become activated before you call the GetNumberOfUsersOnline method
second time. You can also directly validate the database table's
"lastactiviated" field to verify the behavior.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------