Displaying Total Registered Users

Hi ppl

I’m looking for a way to display the total number of registered users on
my site, and also how many are logged in.

Can anybody help out?

Cheers
KK

registered users on
my site, and also how many are logged in.

Can anybody help out?

Cheers
KK

Posted via http://www.ruby-forum.com/.

This is highly dependent on your particular use case and site structure.

How do you store registered users? If in a database, run a database
query
that counts the number of rows of active users. How do you store login
sessions? If in a database, run a database query that counts the numbers
of
rows of logged in users.

There is no generic answer to this question.

HTH,

Felix

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs