2 hits per http request?

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hey people, I've been programming on our new C# MCMS intranet for
about 3 months. This is my first real .Net project. I'm experiencing
some very strange things.

In the global.asax.cs in the Application_BeginRequest function, I've
told the application to add to a Session["Hits"] variable. Everytime
I do a single request this number gets incremented twice. So I wrote
out all my page requests to a file to verify it.

My unexplained solution...
I backed up my entire project folder(v2.2). Then I deleted the
project from the folder and copied my previous version(v2.1) to the
folder. I opened IE and tested and I only got 1 hit per request.
Then I replaced my v2.1 with v2.2 again and it's still only getting 1
hit per request. This is good but I need to know why this was
happening. Could this be a wiggy .Net bug or something?

It was blowing up the log files and filling up the hard drive!
If anyone can explain I'd be very interested.
Thanks.
Mark
 
Is there some reason you don't have the code in the Session_Start method?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top