ASP.NET website keeps logging hits
Posted on 2012-03-27
I created a procedure to insert a record (hit) into a database table each time the Session_Start event fires in the Global.asax file. However, an instance was being instance every minute (give or take).
I moved the procedure to the Page_Load event and added a condition so that the procedure is executed only if the session is new:
If Session("id") Is Nothing Then
Session("id") = guid.NewGuid()
An instance is still being inserted every minute. What am I missing?