How does phpBB track people?

  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

This question just struck me all of a sudden while browsing the forum: how does phpBB track users browsing a forum? At the bottom of the page, it says "Users browsing this forum".

I can understand tracking the users who are online (leave alone the guests) using login and logout. But how do you track what page someone is viewing?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • trevHCS
  • Novice
  • Novice
  • trevHCS
  • Posts: 34
  • Loc: NW England, UK

Post 3+ Months Ago

Everyone gets a session ID when they hit the site (usually stored in a cookie) and it simply logs what page they called up last in the dbase.

The timings for users online usually assumes they're still here for say 5 mins and if it doesn't see them after that time they're removed from the count. Not 100% accurate, but about the only realistic way to do this.

Trev
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

I know that's how users online are tracked. But that would be wildly inaccurate for tracking people browsing a forum, since people usually keep moving between pages. And what if I have multiple pages open?
  • trevHCS
  • Novice
  • Novice
  • trevHCS
  • Posts: 34
  • Loc: NW England, UK

Post 3+ Months Ago

If you've only got one session ID set in the cookie then it'll only track you once around the site. Each time you move a page it'll be updated in the dbase to show that page, although as far as I know it's only available to admins.

Trev
  • jonbyrd
  • Born
  • Born
  • jonbyrd
  • Posts: 1

Post 3+ Months Ago

Cool discussion here :)
This kinda topic really enrich us.
  • Merlyn
  • Guru
  • Guru
  • User avatar
  • Posts: 1143
  • Loc: Oregon

Post 3+ Months Ago

Casablanca wrote:
And what if I have multiple pages open?


A good question. I would like to know as well.

Perhaps it just keeps track of that initial session that was created when you first came to the site and created the cookie.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

Quote:
And what if I have multiple pages open?


Then the last one to be opened is counted. It's based on your last communication with the server.
  • Merlyn
  • Guru
  • Guru
  • User avatar
  • Posts: 1143
  • Loc: Oregon

Post 3+ Months Ago

Thanks for the clarification Joebert
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Posts: 481

Post 3+ Months Ago

joebert wrote:
It's based on your last communication with the server.

That's the only logical implementation I could think of too. Well, as Trev said, "Not 100% accurate, but about the only realistic way to do this."

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 55 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.