Try our conversational search powered by Generative AI!

Get number of logins

Vote:
 

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

Thanks!

#20784
Jun 12, 2008 10:00
Vote:
 

Hi,

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.

/Mattias

#20798
Jun 12, 2008 17:13
Vote:
 
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.
#22552
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.