System.Web.Security.MembershipProvider.GetNumberOfUsersOnline Method

Gets the number of users currently accessing the application.

Syntax

public abstract int GetNumberOfUsersOnline ()

Returns

The number of users currently accessing the application.

Remarks

Returns an integer value that is the count of all the users in the data source where the MembershipUser.LastActivityDate is greater than the current date and time minus the Membership.UserIsOnlineTimeWindow. The Membership.UserIsOnlineTimeWindow is a positive integer value specifying the number of minutes to use when determining whether a user is online.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0