Hello All...
I copied a script from the web that counts how many sessions exist so that i can know/show how many users are connected to a particular page.
I used it at my own site (Name the Game) and despite the fact that i was the only one there i received a value of "77".
Another thing is that using this on my own pc with APACHE i get the value correct. i double checked since i can go to the session path directory and see how many files are there, strangely on JAG server i to the directory the script says reports as being where the JAG keeps theyr sessions (/tmp) thought the use of "sessions_path()" and i go there are there arent any (ses*.*) files there.
So my question is, why did i receive 77 sessions if only i was at the site (which im sure due to the fact that it has a strange url hehehehe), and in which (directory) can i (visually) check the existing sessions? and if possible how to clean the sessions that are there (though PHP) in case there are 77 of them.
Is there a better way to know exactly how many users are online on my webpage? I can check the loged in from my Mysql table field (loged) despite the fact that if they close the explorer i cant 'logout' them, and they still remain there, so i added a timer and after 1 minute all users that are connected are disconected and if necessary reconnected through a cookie.
Well this is all i learned a few days ago, so probably im talking rubish.
Can anyone also tell me the best way/script to check the number of online visitors/registered users for a particular website?
Thanks in advance,
RootShell


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks