tonytiger
07-20-2007, 11:40 PM
Hi,
I'm working on a web page and I would like to collect information about the visitors. The web page is a picture gallery and it will contain three different pages: index.php, category.php and image.php. Index.php is the main site, category.php shows some category of pictures and image.php shows an individual image.
I know how to collect ip-addresses and such, but what I would like to do is the following: Regardless of which of the above mentioned pages the visitor first visits a log will start. As the visitor browses through galleries and images some information is collected. As a result I would like to have log which contains the user information and which pages user has browsed. For example:
IP=xxx
category.php->open.php->index.php->category.php
I could do the following: As user enter, a log starts identified by IP. Each time the Referer-address of the same IP is any of the three pages, collect information.
The problem is that I don't know how when to close the log? That is, I don't know when the user has left my site. Is there a way to know this or some other standard solution to my problem?
Thank you in advance.
Tony
I'm working on a web page and I would like to collect information about the visitors. The web page is a picture gallery and it will contain three different pages: index.php, category.php and image.php. Index.php is the main site, category.php shows some category of pictures and image.php shows an individual image.
I know how to collect ip-addresses and such, but what I would like to do is the following: Regardless of which of the above mentioned pages the visitor first visits a log will start. As the visitor browses through galleries and images some information is collected. As a result I would like to have log which contains the user information and which pages user has browsed. For example:
IP=xxx
category.php->open.php->index.php->category.php
I could do the following: As user enter, a log starts identified by IP. Each time the Referer-address of the same IP is any of the three pages, collect information.
The problem is that I don't know how when to close the log? That is, I don't know when the user has left my site. Is there a way to know this or some other standard solution to my problem?
Thank you in advance.
Tony