System.Web.Security.Membership.UserIsOnlineTimeWindow Property

Specifies the number of minutes after the last-activity date/time stamp for a user during which the user is considered online.

Syntax

public static int UserIsOnlineTimeWindow { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Membership.UserIsOnlineTimeWindow property value is checked during the call to Membership.GetNumberOfUsersOnline. If the MembershipUser.LastActivityDate for a user is greater than the current date and time minus the Membership.UserIsOnlineTimeWindow value in minutes, then the user is considered online. You can determine whether a membership user is considered online with the MembershipUser.IsOnline property of the System.Web.Security.MembershipUser class.

The MembershipUser.LastActivityDate for a user is updated when a user's credentials are successfully validated by the Membership.ValidateUser(string, string) method. You can also update the MembershipUser.LastActivityDate for a membership user when you call one of the Membership.GetUser overloads. If you call a Membership.GetUser overload that takes a userIsOnline parameter, specify a value of true to update the MembershipUser.LastActivityDate for the user.

Requirements

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