Membership::GetNumberOfUsersOnline Method ()
.NET Framework (current version)
Gets the number of users currently accessing an application.
Assembly: System.Web (in System.Web.dll)
GetNumberOfUsersOnline returns the number of users for the current ApplicationName where the last-activity date is greater than the current time less the UserIsOnlineTimeWindow. 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: