Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

i am trying to find out how can i get user activities after login such as pages visited, clicks, trying to access admin page (example), etc... i read somewhere, i don't remember where, there is a way to get that information.

What I need:

1. user login time / logout time
2. user activities (pages visited and when)
3. user activities (trying to visit admin page, when)

I just need to understand the theory, how can i tell the code to look for this information? For examples, when logged in i can get the current time and for the logout as well. Now for parts (2,3) what code or javascript that i can use to get this information?

thanks,
Posted
Updated 17-Dec-15 18:14pm
v2

1 solution

Hi, just create a table and insert all user activities. Wherever, for example if you want to track the page visited by the user, just insert a record in the user activity table when the user entering into the page (in page load event). Like this, wherever you want, just insert a record to the above table.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900