Hi there. I want to implement a counter for the users that are visiting my page. Is it enough a session_start for each user? Every new browser i open it is counted in the counter. What i must do?
Thx
And how i can check if each new window comes from the same user? Plz help...
Your webserver does this autmatically based on the sessionID that is or is not sent with the request.
The problem is most likely that you have cookies disable, and that you don't add the SID to the url that is opened in the new widow.
You could achieve that with
echo ('<a href="./yournewpage.php?sid=' . session_id() .'" title="blabla">New window</a>');
If you need more specific feedback, then you best post some more details and maybe a bit of relevant code or so.
Raf, you seem to be in the know, the problem is I am looking for the code to have a hit counter on my webpage, the problem is my current ASP solution is useless on my PHP server.... could you help?
Comment