Forum Moderators: coopster
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?
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
you can get the usernames into your apache logs as mentioned here
Getting PHP session variables into your Apache logs [webmasterworld.com]