Forum Moderators: coopster

Message Too Old, No Replies

How to track actions of individual logged on (login form) users?

         

emir33

9:35 pm on Oct 27, 2007 (gmt 0)

10+ Year Member



What is the best way to track actions of individual users for sites with login forms?
What I need to do is to track actions (or http request) of individual users on the systems.
Site is build on Apache/PHP/MySQL.

All the requests are saved automatically to Apache access log file, but since usernames are not in the log file I can't by the default associate those requests with userid's.

Any recommendations?

Habtom

4:46 am on Oct 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the best way to track actions of individual users for sites with login forms?

Not necessarily the best way, but you could keep on adding the URL of the current page along side the user name into a db. You might necessarily need to save the entire URL, based on the structure of your site, you may need only to save the combinations that make the page unique.

Though I must say, the data is not going to be small in number if you have quite a number of visitors to the site. The site might slow down a little as you are going to have insert statements running on all the pages.

The Oscommerce package, among others, shows what pages the current visitors are and the items they have in their shopping carts, you might need to look at how it has been done as well, if you want to take this more seriously.

Habtom

jatar_k

1:43 pm on Oct 28, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld emir33,

you can get the usernames into your apache logs as mentioned here

Getting PHP session variables into your Apache logs [webmasterworld.com]

Habtom

1:52 pm on Oct 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jatar_k, thanks for that. That was an eye-opening on that matter.

One of the few good reasons to keep coming back to WebmasterWorld :)