Does anyone know a users online tool/script possible ajax where it updates the users online realtime, so if one visitor leaves the website it will drop from 10 users online to 9 without reloading the page, and instead of having a setting which counts a user online for 3 mins then offline it should use a system where it tracks sessions possibly, can anyone help?
What does it mean to "leave" a web site? What if I open another tab and never go back to the site? What if I am visiting it using a browser with Javascript turned off?
When i mean leave, i mean the session is over. then it wont use javascript but it can still use javascript, i mean who has javascript turned off these days.
It is fairly simple to create a system to do this. Obviously it depends on how your sessions are managed, but a bit of dectective work with google will have you educated in no time.
Live Users Online PHP Script: Flat file (no database required!) Real-time statistics (The ajax was done with mootools and is included inside the zip.) Source: http://vinewhip.com/live-users-online-php-script/ Download Link: http://vinewhip.com/wp-content/uploads/2009/05/live_online_users_script.zip
Well, I need a script just like this, That auto update afer a while. I have javascript running, and I tried it simultaniusly with two friends, and they got the same result with ie. It just showed the 1 user online that are default and static coded in the html-file.
mate..there is no "real time" you can make it lets say the activity of online users is based on last 5 mins.. on my site I made it 30 mins.. coding one is very simple.. however, you can find lots of free scripts.. google is your friend..
I have one now, but its not the best solution, it works like this. I have an iframe on the main page, the iframe contain a php script showing the users online. I use a javascript to reload the php script page. Since my visitors stay in the main page quite some time I want the online users to update automaticly, my visitors nerver reloads the page and I my site only contain one page. I do realise that it cant be the acctual online users. But a reload every 5 minutes or so is fine. Acctually I tried google, but I couldnt find anyone that suited me. What I want is a script that does like the one I have, but without any iframe.