![]() |
Theory of how Who's Online Feature Works
Hi Peeps.
I am interested in adding a feature like who's online to my website. I am fairly confident in coding with PHP. What I need is basically the theory of how the Who's Online Feature works and more importantly how it realises a user is not looking at the board no more etc. Thanks for any help which can be offered. |
ascii flow chart (sort of)
Code:
You'll also have to generate a unique $your_session_id and use it to track users. |
Ahhh cool m8ty that helps a lot. One final question tho. When does the function to delete from the session table get executed and in which script? For Eg. Is that run everytime the forumlist is loaded?
|
There was a script for this at EvilWalrus.com (http://evilwalrus.com/) but the they have seem to delete all the snippets.
|
Depending on your traffic, you may run it everytime a page is hit, or once every X times. Or you could put it in a cron job and set it off every 5 minutes.
|
All times are GMT. The time now is 12:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|