Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How to find out no of users are visit the website and after Login the user which pages are they visited that data stored in Sql server database

Kindly reply this question
Posted
Comments
ali_heidari_ 22-Mar-13 16:29pm    
wana know a specified user didnt login from when?
wana record all of the pages that user visit?

Well, if they are logging in you can simply write a record to a table when the user logs in.

As for which pages they visit, you would have to insert a record to a table for each unique page visited in the current session (assuming that is what you require) - so simply run some insert SQL when each pages is initially loaded, storing that user, some identifier for the page and, probably, the date and time.
 
Share this answer
 
Comments
krish2013 19-Mar-13 1:48am    
Hi Maxx,
Thanking for you give a suggestion
please provide any related code for this article
_Maxxx_ 19-Mar-13 5:05am    
How about trying some yourself then asking back here when you have problems - I'm not about to do your work for you!
create a table in sql for users..
and when a user sign in
send a query to sql
you can do it in asp.net easily
for example
insert into users ( user_name, surname , phone number) values ('ali', 'xxx', '555555555')
then you can get user number
 
Share this answer
 
Here are some nice articles for you -
1. Tracking User Activity[^].
2. Page Tracking in ASP.NET[^].
3. How to track visitors to your site in ASP.NET & C#[^].
4. Storing User Profiles[^].

Just go through them and try to implement...
 
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