Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
118 Points
425 Posts
Feb 21, 2012 03:33 PM|LINK
Hi,
I want records details of site visitors. I have create class and called it from my home controller like below
StaticHit hit = new StaticHit(); string strClientIP = Request.UserHostAddress; hit.IpAddress = strClientIP; hit.LoginDate = System.DateTime.UtcNow; ServiceSatatics st = new ServiceSatatics(); st.SaveHit(hit);
But its record same user many time when user hit home page many time, How can i stop that?
lakmal
gslakmal
Member
118 Points
425 Posts
records statics data
Feb 21, 2012 03:33 PM|LINK
Hi,
I want records details of site visitors. I have create class and called it from my home controller like below
StaticHit hit = new StaticHit(); string strClientIP = Request.UserHostAddress; hit.IpAddress = strClientIP; hit.LoginDate = System.DateTime.UtcNow; ServiceSatatics st = new ServiceSatatics(); st.SaveHit(hit);