User statistics

In Sitefinity CMS, statistics can be persisted for some of the actions of the users. This done through the Telerik.Sitefinity.Security.Model.User object. The statistics can be easily accessed by its properties. If you use the built-in user-related controls (such as the Login control), the statistics get updated automatically. If you use your custom user-related controls, you must manually update the statistics by changing the values of the respective properties.

Password statistics

The following properties of the User object expose password related statistics:

  • LastPasswordChangeDate
    Gets or sets the date of the last password change.
  • FailedPasswordAttemptCount
    Gets or sets the count of login attempts that failed due to incorrect password.
  • FailedPasswordAnswerAttemptCount
    Gets or sets the count of login attempts that failed due to incorrect answer to the secret question.

Activity statistics

The following properties of the User object expose activity related statistics:

  • LastActivityDate
    Gets or sets the date, when the user was last active.
  • LastLockoutDate
    Gets or sets the date of the last lockout of the user.
  • LastLoginDate
    Gets or sets the date of the last login of the user.
  • LastLoginIp
    Gets or sets the IP of the last login of the user.
  • IsLoggedIn
    Indicate whether the user is currently logged in.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Password format