How to find how many visitors I have on my page at loading time.
I want to find how many visitors I have on my webpage when the page is loading so I can put this information on it.
Thank you in advance.
Dan C. Nagy
I did some checking on web. The only solution that I found was in Java + JavaScript, to catch the events of creation and of destruction of session. In my webpage I can do fine with the creation of session, but I have no idea how I can catch the destruction of a session. Any suggestions ?
Where is the db with active sessions ? I was looking in the PHP references and I couldn't find anything. Could you be more specific ?
It's not hard to catch the creation and destruction of sessions. Although by default PHP handles sessions transparently to your code, you can tell PHP to use your custom scripts in place of the default handling mechanism.
I have, for example, a FAQ (faq434-2037) in this forum which describes how to use your own code to store sessions in a MySQL database rather than PHP's default method of storing them on the server's filesystem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.