another thought... setting the cookie would be simple.. here is a theory that incorporates a database:
if ($cookie)
//"insert random unique id into database" then u would just count the number of random ids and display that.
BUT! how can you tell when a person has closed their browser? how MY server tell when the cookie has been deleted from THEIR computer?
... another thought
if you use sessions and pass them in the URL then those sessions are stored on the server computer, right? okay, how can you tell when taht session is over? (ie, the browser is closed, or, they left the website)
... final thought..
couldn't you just use FSOCKOPEN() and open a connection to port 80 and count the currenct connections?
thx
blue