Thanks for the suggestion, but that's not really what I'm looking for. I already log the visitors ip address (for security issues) when they first register to access the site.
Now what I am doing is implementing a tracking system so I can determine which pages within the site the user visits, as well as how long they visit each page.
Using sessions I log the page name of the page the user logs onto and the UNIX timestamp as of when they logged onto the page. Then when they click to a new page I check to see if ($HTTP_SESSION_VARS['login']) isset. If it is I log the UNIX timestamp again as my logout time for that particular page. I then subtract the Logout time from the login time and voila, I know the amount of time they spent on that particular page. I then store that info in a database.
From that point I unregister (session_unregister()) the UNIX timestamp session variable and the page name variable and then reset them for the new page.
My problem lies in how do I determine when the user leaves the site altogether???
I could use javascript as deception54 suggested, but I'm not very javascript inclined. I guess I could trigger a small window to pop up when the user closes his browser or leaves the site saying something like "Thanks for visiting" but I don't like that idea very much.
Any other suggestions?
JeNNiDeS