Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to create log using sqlserver with " windows services
or may be some thing else.

my issue is
as user visit different web sites i want to create log for it

suppose 1 user visit yahoo.com then hotmail.com then google and so on

my log would be like this

sno   user id     site visit     datetime                browser
----  -------     ---------       -----
1      xyz         yahoo.com      12/12/2011 3:40:5       ie
2      xyz         hotmail.com    12/12/2011 3:45:15      ie
3      xyz         google .com    12/12/2011 4:45:15      ie



kindly let me know can we do this by making window service ?
how to done this
thanks in Advance
Posted
Updated 13-Dec-11 8:03am
v2

This is what a proxy server is for. Your clients network connection would be insulated from the internet by this proxy server. They cannot get out to the internet without it. Their browsers would be configured to use this server to go get web pages. The proxy then has to opportunity to log every single URL visited by anyone.

Since a web page is just about never a single request and response, but made up of many different URLs, requests and responses, you'll be logging more URLs that you think.

If you don't have any idea how to code TcpServer/Clients, your best bet would be to get a commerical proxy server off-the-shelf. Otherwise, it'll take you an extraordinary amount of time to learn the in's and out's of Tcp server programming and coming up with something that does what you want but also is performant and stable.
 
Share this answer
 
Comments
Wonde Tadesse 13-Dec-11 17:44pm    
5+
thatraja 13-Dec-11 21:53pm    
Fine, 5!
how about running fiddler2 and then take the logs and update your db
 
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