ip(s) of all the users online ? (General)

by Auge, Sunday, February 08, 2009, 14:50 (5556 days ago) @ Ken
edited by Alex, Monday, February 09, 2009, 13:23

Hello

Any idea how can we check the ip addresses of all users who's currently online ?

The HTTP protocol contains no "current". If someone calls a site, she/he contacts the webserver of the domain (over a link, formular or the direct call over the address line), the server delivers the site and that's it. You will find no information about the one-minute-later-status of the user on the server.

Thatswhy you have to do it yourself. Record every access with IP and time in the database. These are the needed informations. Now you must select a timebase (i.e. (last) 5 minutes) for counting the accesses of the near past. When you want to show this record in a site you have to read the record for all entries of the last 5 minutes (timebase) and to generate the output.

Tschö, Auge


Complete thread:

 RSS Feed of thread