[Pugged] Hit tracking, initial record.
Chris Hettinger
ciapug@ciapug.org
Fri, 13 Dec 2002 23:22:40 -0600
I have a small function which is to store some visitor tracking
information to my site. I am storing a session_id, user_id (applicable
only they are logged in), url, timestamp, and the ip of the request.
In my header file, Line 1 is a include of functions.php, below that
(line 2) I make a function call to a tracking function. The function
simply sets the timestamp, determines the request ip, then writes the
data into a mysql table.
The issue however is the Session ID. On the very first instance of
viewing my site, the record is written but there is no Session ID. If I
refresh the page or continue my visit and browsing to another page, thus
another call to the tracking function each record after has the session
id.
Not sure I have provided the full scenario here, questions... Ask away.
-ch