Jump to content

Viewing

Featured Replies

When looking at the main index of fora, I notice that there is a little bracket after the name of each forum telling me how mant people are viewing that forum, eg (2 viewing).

 

How is this calculated? Since you cannot constantly check people's browsers to see what page is open, it must presumably be measured by number of times the page was loaded in the previous x minutes? Is this right?

Each member or visitor who is online creates a session on the server, in which all manner of variables can be stored. "Last page viewed" could be one of them, then it's just a matter of collating that information.

 

That would be quite inefficient though... the method you suggested would be much less resource-intensive and not unforgivably inaccurate.

Each member or visitor who is online creates a session on the server' date=' in which all manner of variables can be stored. "Last page viewed" could be one of them, then it's just a matter of collating that information.

 

That would be quite inefficient though... the method you suggested would be much less resource-intensive and not unforgivably inaccurate.[/quote']

 

it'd possibly be more accurate than the method you described first.

 

If i go to new posts > last day, and open all the interesting threads with new replys in tabs, i believe that i'd be registered as only viewing the last tab that i open (wildly inaccurate).

 

severians method would correctly realise that i was viewing more than one forum, at least untill the x minutes expire.

 

out of interest, would it be possible (albeit possibly impractacle) to use onLoad and onUnload to register with the forum which pages your viewing/stopping viewing with the forum to get a pretty much accurate report?

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.