Grow your CSS skills. Land your dream job.

Show current active users on website

  • # February 25, 2014 at 8:52 pm

    I want to track the current users and display it as text on my website. How can i achieve this?

    __
    # February 25, 2014 at 9:38 pm

    You’ll need to:

    • Have your users sign in
    • Keep track of their page requests (e.g., using a session)
    • Store the time of each user’s last activity (likely in a database)
    • Decide how long a user is considered “current.”
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".