Try our conversational search powered by Generative AI!

Get number of logins


How can I get the number of times a user has logged in? On the "Logins" on my page are generated by OnlineStatusModule.OnlineCount but that can't be correct.


Jun 12, 2008 10:00


Yes that example is incorrect, it will display the total number of currently logged in users. The number of individual logins is not recorded, only the last login date. What you can do is increment an integer attribute on the user on every login and then present that in the profile.


Jun 12, 2008 17:13
Yeah, I had some trouble working that one out myself, the OnlineCount value. But when I realized it counted the number of online users, I created an integer attribute on the user which is incremented each time the user logs on the site. Seems to work nicely so far.
Aug 08, 2008 14:44
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.